进度条提示 下载 sweetjing 7 0 PY 2020-08-22 01:08:40 a = '*' * i b = '.' * (scale - i) c = (i/scale)*100 dur =time.perf_counter() - start print("\r{:^3.0%}[{}->{}]{:.2f}s".format(i/scale,a,b,dur),end='') time.sleep(0.1) 立即下载 微信扫一扫:分享 微信里点“发现”,扫一下 二维码便可将本文分享至朋友圈。