我有一個python-pexpect代碼片段是這樣的: while True:
master.sendline("show rsu-set all")
status=master.expect(["[sS]nmp.*[ ]*=[ ]*[0-9].*[0-9]","Savari>>",TIMEOUT,EOF],4)
if status == 0:
old_s
我已在這裏所示。但是https://github.com/pexpect/pexpect/blob/master/examples/ssh_tunnel.py ,當我嘗試運行使用python 2.7它,我得到一個錯誤說 Unsupported format character '@' (0x40) at index 81
的Pexpect的例子如果我拿出@它似乎解決了錯誤,但我得到了另一個例外