mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 03:50:16 +00:00
24 lines
467 B
C#
24 lines
467 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using pkpy;
|
|
|
|
public class A : MonoBehaviour
|
|
{
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
var vm = new pkpy.VM();
|
|
vm.exec("print('Hello world')");
|
|
PyOutput o = vm.read_output();
|
|
Debug.Log(o.stdout.Trim());
|
|
//Debug.Log(o.stderr);
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|