why does python.subprocess hang after proc.communicate()?

后端 未结 3 1756
死守一世寂寞
死守一世寂寞 2020-12-15 07:11

I\'ve got an interactive program called my_own_exe. First, it prints out alive, then you input S\\n and then it prints out alive

3条回答
  •  心在旅途
    2020-12-15 07:18

    communicate() reads data from stdout and stderr until end-of-file is reached. - It waits until your program quits.

提交回复
热议问题