标签: python expect pexpect
如何使用pexpect按 Enter ?问题是我不知道如何提交“输入”
-- Press ENTER to continue or Ctrl-C to abort. -- child.expect ('-- Press ENTER to continue or Ctrl-C to abort. --*') child.sendline ('')