import sys,time

第一种方法:
for i in range(50):
    sys.stdout.write("#")
    time.sleep(0.1)
    sys.stdout.flush()



第二种方法:
for i in range(10):
    print("#",end="",flush=True)
    time.sleep(0.4)

 

 
posted on 2016-10-25 23:23  Beirut  阅读(1044)  评论(0编辑  收藏  举报