import sys,timefor i in range(50): sys.stdout.write("#") sys.stdout.flush()# flash the data from memory time.sleep(0.1)
flush progess bar
原文:https://www.cnblogs.com/carol7258/p/12852949.html