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