How do I create a subprocess in Python?

后端 未结 6 1546
孤独总比滥情好
孤独总比滥情好 2021-01-18 09:21

I would like to create a subprocess of a process.

What would be a working example which shows how to accomplish this?

6条回答
  •  离开以前
    2021-01-18 09:58

    if os.name == 'nt':
    startupinfo = subprocess.STARTUPINFO()
    startupinfo.dwFlags |= subprocess._subprocess.STARTF_USESHOWWINDOW
    subprocess.call(os.popen(tempFileName), shell=True)
    os.remove(tempFileName)
    

提交回复
热议问题