python call external program non-blocking way

后端 未结 2 802
刺人心
刺人心 2020-12-10 19:19

is there a way to call an external program inside python and don\'t wait for its execution to finish?

I tried this, but no luck:

os.system(\"external         


        
2条回答
  •  执笔经年
    2020-12-10 20:03

    Forget about os.system(). It is deprecated in favour of the subprocess module.

    It provides a way to execute subprograms for almost every thinkable use case.

提交回复
热议问题