使用python调用其他脚本

cmd = '<command line string>'
print(cmd)
p = subprocess.Popen(args=cmd, shell=True, stdout=subprocess.PIPE)
p.communicate()  

p.communicate()等待Popen任务执行完成。

原文地址:https://www.cnblogs.com/zhangwei22/p/10279371.html