subprocess.connected


  • <boolean> 调用 subprocess.disconnect() 后会被设为 false

表明是否可以从子进程发送和接收消息。 当 subprocess.connectedfalse 时,则不能再发送或接收消息。

  • <boolean> Set to false after subprocess.disconnect() is called.

The subprocess.connected property indicates whether it is still possible to send and receive messages from a child process. When subprocess.connected is false, it is no longer possible to send or receive messages.