1、新建一個txt文檔,輸入以下命令
@echo off
cmd /k python F:\Pycharm_Projection\Test\test2.py
2、將txt文檔保存為.bat格式,然后雙擊運行即可
例如我要是想打開labelImg打標簽工具:
@echo off
start python device_statistics_exporter_old.py d 2019 1 31> 2019-1-31五大指標.csv
start python device_statistics_exporter_old.py d 2019 1 30> 2019-1-30五大指標.csv
start python device_statistics_exporter_old.py d 2019 1 29> 2019-1-29五大指標.csv
exit