python标准代码eof
如何将python eof传递给stdin 这是我的密码python标准代码eof,python,stdin,eof,Python,Stdin,Eof,如何将python eof传递给stdin 这是我的密码 p = Popen(commd,stdout=PIPE,stderr=PIPE,stdin=PIPE) o = p.communicate(inputstring)[0] 当我在输入inputstring后运行commd in命令行时,windows仍然希望Ctrl+Z完成接受输入 如何在程序中传递eof或Ctrl+Z 谢谢 p.stdin.close() p.Communication后,完成输入并将EOF发送给commd
p = Popen(commd,stdout=PIPE,stderr=PIPE,stdin=PIPE)
o = p.communicate(inputstring)[0]
当我在输入inputstring后运行commd in命令行时,windows仍然希望Ctrl+Z完成接受输入
如何在程序中传递eof或Ctrl+Z
谢谢
p.stdin.close()
p.Communication后,完成输入并将EOF发送给commd