在windows下批处理文件中调用python
由于python的变量的问题,不能在批处理文件somefile.bat
正确使用python somefile.py
来执行python程序。
所以需要在bat文件中临时修改python环境变量。
最终的bat文件如下:
1 2 3 4 5 6 7 8 9 10 |
|
由于python的变量的问题,不能在批处理文件somefile.bat
正确使用python somefile.py
来执行python程序。
所以需要在bat文件中临时修改python环境变量。
最终的bat文件如下:
1 2 3 4 5 6 7 8 9 10 |
|