65,209
社区成员
发帖
与我相关
我的任务
分享QProcess *my_process = new QProcess();
my_process->start("python test_process.py");
import subprocess
import os
print('parent pid', os.getpid())
p=subprocess.Popen(['python', '-c', 'import time;time.sleep(100)'], shell=False)
print('child pid', p.pid)
p.wait()