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.
我正在使用 wexpect 在 Windows 上工作,但输出格式有问题。如果我把它放在我的代码中:
child.sendline('get router info bgp summary') child.expect('#') print(child.before)
打印将所有内容放在一行中,忽略并删除回车符。我可以通过哪种方式获得正确的格式?
谢谢