博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
C#调用Python
阅读量:2238 次
发布时间:2019-05-09

本文共 513 字,大约阅读时间需要 1 分钟。

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;

转载于:https://www.cnblogs.com/zeroone/p/3632364.html

你可能感兴趣的文章
Leetcode C++《每日一题》20200625 139. 单词拆分
查看>>
Leetcode C++《每日一题》20200626 338. 比特位计数
查看>>
Leetcode C++ 《拓扑排序-1》20200626 207.课程表
查看>>
Go语言学习Part1:包、变量和函数
查看>>
Go语言学习Part2:流程控制语句:for、if、else、switch 和 defer
查看>>
Go语言学习Part3:struct、slice和映射
查看>>
Go语言学习Part4-1:方法和接口
查看>>
Leetcode Go 《精选TOP面试题》20200628 69.x的平方根
查看>>
leetcode 130. Surrounded Regions
查看>>
【Python】详解Python多线程Selenium跨浏览器测试
查看>>
Jmeter之参数化
查看>>
Shell 和Python的区别。
查看>>
【JMeter】1.9上考试jmeter测试调试
查看>>
【虫师】【selenium】参数化
查看>>
【Python练习】文件引用用户名密码登录系统
查看>>
学习网站汇总
查看>>
【Loadrunner】性能测试报告实战
查看>>
【自动化测试】自动化测试需要了解的的一些事情。
查看>>
【selenium】selenium ide的安装过程
查看>>
【手机自动化测试】monkey测试
查看>>