subprocess.stderr


一个表示子进程的 stderrReadable Stream

【A Readable Stream that represents the child process's stderr.】

如果子进程的 stdio[2] 被设置为除 'pipe' 之外的任何值,那么它将为 null

【If the child process was spawned with stdio[2] set to anything other than 'pipe', then this will be null.】

subprocess.stderrsubprocess.stdio[2] 的别名。两个属性都会引用相同的值。

subprocess.stderr 属性可能为 nullundefined,如果子进程未能成功启动。

【The subprocess.stderr property can be null or undefined if the child process could not be successfully spawned.】