import sys,time for i in range(100): sys.stdout.write("#") ##标准输出 sys.stdout.flush() ##实时刷新,如果不加,就会等缓冲完再打印 time.sleep(0.5) ##0.5秒一个