[英]Unsupported format character '@' (0x40) at index 81
I have taken the pexpect example shown here https://github.com/pexpect/pexpect/blob/master/examples/ssh_tunnel.py 我已经采取了这里显示的pexpect示例https://github.com/pexpect/pexpect/blob/master/examples/ssh_tunnel.py
However when I try to run it using python 2.7 I get an error saying 但是,当我尝试使用python 2.7运行它时,出现错误提示
Unsupported format character '@' (0x40) at index 81
If I take the @ out it seems to resolve the error but I get another exception. 如果我将@取出,似乎可以解决该错误,但会出现另一个异常。 I was wondering if it's because in the example the @ is right next to the % which causes wrong interpretation? 我想知道是否是因为在示例中@紧邻%会导致错误的解释? if so how do I go about resolving this? 如果是这样,我该如何解决呢? Thanks 谢谢
Looks like the code is just broken. 看起来代码刚刚坏了。 It should read %(user)s@%(host)s
. 它应该显示为%(user)s@%(host)s
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.