首页 > 编程语言 > 详细

C#调用Python

时间:2014-03-31 15:29:56      阅读:599      评论:0      收藏:0      [点我收藏+]

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

原文:http://www.cnblogs.com/zeroone/p/3632364.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!