非网页用的进度条,自己后端打印的实现:
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)