subprocess.stderr
- 类型: <stream.Readable> | <null> | <undefined>
一个表示子进程的 stderr 的 Readable 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.stderr 是 subprocess.stdio[2] 的别名。两个属性都会引用相同的值。
subprocess.stderr 属性可能为 null 或 undefined,如果子进程未能成功启动。
【The subprocess.stderr property can be null or undefined
if the child process could not be successfully spawned.】