阅读背景:

合并Python脚本的子进程'stdout和stderr,同时保持它们可区分

来源:互联网 

I would like to direct a python script's subprocess' stdout and stdin into the same file. What I don't know is how to make the lines from the two sources distinguishable? (For example prefix the lines from stderr with an exclamation mark.)I would like to direct a python script's subpro




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: