1 import sys,time 2 for i in range(50): 3 sys.stdout.write(‘#‘) 4 time.sleep(0.1) 5 if i in[10,20,40,50]: 6 sys.stdout.flush() 7 8 if __name__ == ‘__main__‘: 9 pass
进度条(python 实现)
原文:https://www.cnblogs.com/zach0812/p/11333338.html