C#调用Python

Cursor.Current = Cursors.WaitCursor;

Process process = new Process();

//不显示 console 窗口
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.UseShellExecute = false;
process.StartInfo.CreateNoWindow = true;

process.StartInfo.FileName = @"C:\Python27\Python.exe";
process.StartInfo.WorkingDirectory = get_app_path();
process.StartInfo.Arguments = get_app_path() + "parser.py";
process.Start();

process.WaitForExit();
Cursor.Current = Cursors.Default;

C#调用Python,布布扣,bubuko.com

C#调用Python

上一篇:GDB调试技巧:gdb at pid无法调试的问题


下一篇:Thinking in Java 泛型章节中不用LinkedList来实现自己的内部链式存储机制