Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写的 Python 程序需要在 Python 进程之外启动一个本地 PHP 脚本。该程序还需要将参数传递给 PHP 脚本。到目前为止,这似乎启动了脚本:
os.system( path_to_script_here param param )
但是,我很确定 Python 会一直运行,直到 PHP 脚本完成。
我还查看了各种 os.spawn 方法,但我不确定哪种方法适合我的情况。有任何想法吗?
谢谢!
请参阅:如何在 Python 中启动后台进程?