阅读背景:

Python 3.4.3 subprocess.Popen得到没有管道的命令输出?

来源:互联网 

I am trying to assign the output of a command to a variable without the command thinking that it is being piped. The reason for this is that the command in question gives unformatted text as output if it is being piped, but it gives color formatted text if it is being run from the terminal. I need to get this color formatted text.I am trying to assign the output of a command t




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

分享到: