【发布时间】:2015-12-21 10:38:31
【问题描述】:
是否可以在不等待终止的情况下从另一个 python 脚本运行 python 脚本。
父进程将在子进程创建后立即终止。
我试过了:
subprocess.Popen([sys.executable, "main.py"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
还有:
os.system(...)
【问题讨论】: