C#调用命令行执行python脚本,这个办法可以调用python第三方模块和对本地文件进行操作
string pythonScriptPath = Server.MapPath(@”~\pythonScript”);//python脚本所在的目录rn ProcessStartInfo start = new ProcessStartInfo();rn start.FileName = “python”;//执行python.exern.
string pythonScriptPath = Server.MapPath(@”~\pythonScript”);//python脚本所在的目录rn ProcessStartInfo start = new ProcessStartInfo();rn start.FileName = “python”;//执行python.exern.