python simulates ftp progress bar

Code

import time
import sys
for i in range(100):
    sys.stdout.write("#")#向屏幕输出端写入一个#
    time.sleep(0.1)#模拟过程
    sys.stdout.flush()#刷新屏幕输出端缓存

Guess you like

Origin blog.csdn.net/qq_40837794/article/details/84945220
Recommended