初学Python,网上搜索说用这个方法
import subprocess
subprocess.call ('cscript test1.vbs')
然后尝试
import subprocess
subprocess.call ('cscript test1.vbs')
subprocess.call ('cscript test2.vbs')
测试发现调用顺序为先执行第一个VBS程序,当程序执行完毕之后,再执行第二个VBS程序
之后又尝试将代码更改为
import subprocess
subprocess.call ('cscript test1.vbs' and 'cscript test2.vbs)
但运行之后发现只运行第二个VBS程序,第一个不执行
这几天也尝试了其他方法,但一直都是两个程序无法同时运行,想询问下各位大佬该怎么编写才能同时执行,谢谢