标签: python-3.x paramiko
我想要多个命令的输出,但每个命令的输出必须保存在不同的文件中。如何按命令分割输出?
display_commands = ['display clock', 'display users'] output = '' for command in display_commands: net_connect = ConnectHandler(**router) output += net_connect.send_command(command, delay_factor=2)