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