进度条提示

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)

用户评论
请输入评论内容
评分:
暂无评论