[python]倒计时实现

for num in range(5,0,-1):
     time.sleep(1)
     sys.stdout.flush()
     sys.stdout.write('\rPlease Wait: '+str(num)+'s \r')
     sys.stdout.flush()

posted @ 2015-04-13 15:48  ttbelieve  阅读(4578)  评论(0编辑  收藏  举报