subprocess.stdin


新增于: v0.1.90

代表子进程的 stdinWritable 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.stdinsubprocess.stdio[0] 的别名。这两个属性将引用相同的值。

\subprocess.stdin is an alias for subprocess.stdio[0]. Both properties will refer to the same value.

如果无法成功生成子进程,则 subprocess.stdin 属性可以是 nullundefined

\The subprocess.stdin property can be null or undefined if the child process could not be successfully spawned.

AltStyle によって変換されたページ (->オリジナル) /