2014-05-19 39 views
1

所以我使用“子流程”中的“调用”。我的问题是,当我这样做时,cmd会弹出一会儿,然后做我告诉它做的事情并关闭。Python子流程在后台

我甚至不想在那个时刻看到cmd。我如何才能在没有看到任何东西的情况下在后台运行。

我已经试过:

call(["..."]) 

subprocess.check_output(["...","..."] 

感谢

+0

[如何在后台python中运行子进程](http://stackoverflow.com/questions/20292096/how-to-run-a-subprocess-in-the-background-python) – Midnighter

+0

@ Midnighter,你引用的帖子使用“process.wait()”。答案是从代码中删除“process.wait()”。我不明白这与此有关。 – Overtim3

+0

他使用'subprocess.Popen',你也应该这样做。 – Midnighter

回答