非网页用的进度条,自己后端打印的实现:
import sys
for i in range(100):
s ="\r %d %% %s"%(i,"#"*i)
sys.stdout.write(s)
sys.stdout.flush()
import time
time.sleep(0.5)
非网页用的进度条,自己后端打印的实现:
import sys
for i in range(100):
s ="\r %d %% %s"%(i,"#"*i)
sys.stdout.write(s)
sys.stdout.flush()
import time
time.sleep(0.5)
转载于:https://www.cnblogs.com/adamans/articles/7495002.html