subprocess.stdin


表示子进程的 stdin 的可写流。

如果子进程等待读取其所有的输入,则子进程将不会继续,直到流已通过 end() 关闭。

如果子进程被衍生时 stdio[0] 被设置为 'pipe' 以外的任何值,则该值将会是 null

subprocess.stdinsubprocess.stdio[0] 的别名。 两个属性都将会指向相同的值。

A Writable Stream that represents the child process's stdin.

If a child process waits to read all of its input, the child will not continue until this stream has been closed via end().

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

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