public static void Print(PyObject pyObject, bool isPrintLog = true) { if (isPrintLog) { Console.WriteLine(">>> print()"); } PyRun.SimpleString("print(" + _names[pyObject] + ")"); }
public static void Run(string code, bool isPrintLog = true) { if (isPrintLog) { Console.WriteLine(">>> " + code); } PyRun.SimpleString(code); }
public static void Print(string name, bool isPrintLog = true) { if (isPrintLog) { Console.WriteLine(">>> print(" + name + ")"); } PyRun.SimpleString("print(" + name + ")"); }
public static void RunOnly(string code) { PyRun.SimpleString(code); }