subprocess.stdin
-
类型:<stream.Writable> | <null> | <undefined>
¥Type: <stream.Writable> | <null> | <undefined>
代表子进程的 stdin 的 Writable Stream。
¥A Writable Stream that represents the child process's stdin.
如果子进程等待读取其所有输入,则子进程将不会继续,直到通过 end() 关闭此流。
¥If a child process waits to read all of its input, the child process will not continue
until this stream has been closed via end().
如果子进程是在 stdio[0] 设置为 'pipe' 以外的任何值的情况下生成的,那么这将是 null。
¥If the child process was spawned with stdio[0] set to anything other than 'pipe',
then this will be null.
subprocess.stdin 是 subprocess.stdio[0] 的别名。这两个属性将引用相同的值。
¥subprocess.stdin is an alias for subprocess.stdio[0]. Both properties will
refer to the same value.
如果无法成功生成子进程,则 subprocess.stdin 属性可以是 null 或 undefined。
¥The subprocess.stdin property can be null or undefined
if the child process could not be successfully spawned.