标签: python python-3.x subprocess
我知道我可以使用subprocess.run轻松地在Python 3中运行命令。但是,subprocess.run会等到程序完成后再将输出作为字符串返回。
subprocess.run
在程序运行时如何获取标准输出?