Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有几条 pexpect 线路可以登录到 cisco 路由器,然后发出 show arp 命令。然后我退出路由器,将数据存储到变量 myARP (myARP=child.before)
然后,当我尝试遍历对象时(对于 myARP 中的行:print(lines),信息显示为每行 1 个字符 l i k e
我 是 _ _
道歉,因为这可能是一个非常基本的问题,但是如果我手动发出命令,为什么我不能显示?它与 telnet 连接的流式传输特性有关吗?这个怎么解决???
好的已修复-我认为是由于对行尾(/n/r)的预期处理。阅读 Noahs 使用文档了解更多信息