且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

重定向子进程标准输出

更新时间:2022-12-09 11:14:59

你可以试试这个,看看你是否得到了Output2"

You could try this so see if you get the "Output2"

task = subprocess.Popen(["python", "test2.py"], stdout=subprocess.PIPE)
print task.communicate()

如果这样做,请将其发送到文本框:)

If you do, send it to the textbox :)