subprocess.stdin


一个表示子进程的 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 属性可能为 nullundefined,如果子进程未能成功启动。

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