cmd = '<command line string>' print(cmd) p = subprocess.Popen(args=cmd, shell=True, stdout=subprocess.PIPE) p.communicate()
p.communicate()等待Popen任务执行完成。
cmd = '<command line string>' print(cmd) p = subprocess.Popen(args=cmd, shell=True, stdout=subprocess.PIPE) p.communicate()
p.communicate()等待Popen任务执行完成。