import os
import time,sys
for i in range(1,1000):
print i,
sys.stdout.write("\r")
time.sleep(0.2)
import time,sys
for i in range(1,1000):
print i,
sys.stdout.write("\r")
time.sleep(0.2)
1. print i, ## ,表示不换行
2. sys.stdout.write("\r") 回到行首,不换行
3.命令行运行刷行,调试终端显示不正常