如何实时读取变化的回显
求大佬帮忙,用python的netmiko模块登陆到交换机后,使用命令使交换机FTP去下载文件时,有个百分比的进度条如何实时读取出来,如下图<SW1>ftp 192.168.56.1
Trying 192.168.56.1 ...
Press CTRL+K to abort
Connected to 192.168.56.1.
User(192.168.56.1:(none)):yl
331 Password required for yl
Enter password:
230 Logged on
[ftp]get GoodSync119.rar
200 Port command successful
150 Opening data channel for file download from server of "/GoodSync119.rar"
67%
实时读取这个百分数并实时显示,能看到下载进度