将多个python脚本运行到特定路径

时间:2018-04-04 08:05:47

标签: python

我正在尝试从不同的路径运行多个文件。我想知道我是否可以将结果放在与脚本相同的文件夹中。

import os
print ("Starting tablete_tot")
os.system(r"python D:\python\test\tableta_wi_fi_tot.py")
print ("tablete_tot ended")
print ("Starting tasatura_fara_fir_noutati")
os.system(r"python D:\python\test\tasatura_fara_fir_noutati.py")
print ("tasatura_fara_fir_noutati ended")
print ("Starting mouse_pad_tot")
os.system(r"python D:\python\test\x\mouse_pad_tot.py")
print ("mouse_pad_tot ended")

我需要将结果与脚本放在同一个文件中。

0 个答案:

没有答案
相关问题