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.
我在终端中有一个没有完成的命令。我的意思是它不像执行完成后的“ls”。我在我的 python 代码中使用这个命令,所以我需要它来完成!因为我必须继续。知道怎么做吗?
看起来你可以只使用 PythonPopen创建一个子进程,然后不等待子进程完成
Popen
http://docs.python.org/library/subprocess.html