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