本文摘自:https://blog.csdn.net/HJULKK/article/details/52549674
先写一个简单的python程序print.py
,代码如下:
print "call success."
执行结果:
>>> ================================ RESTART ================================
>>>
call success.
>>>
callpython.bat
@echo off
F:
cd F:\learning\python\project\battest
start python print.py
rem 使用ping命令暂停3s,这样可以看到调用python后的结果
ping -n 3 127.0.0.1 > nul
双击执行callpython.bat
后执行结果如下:
“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill
标 题:Windows使用bat批处理执行python程序