首页 > 编程语言 > 详细

Python 使用print实现进度

时间:2019-08-28 14:23:11      阅读:104      评论:0      收藏:0      [点我收藏+]
import time

print("0%",end='')
time.sleep(2)
print("\r1%",end='')
time.sleep(2)
print("\r2%",end='')
time.sleep(2)
print("\r5%",end='')
time.sleep(2)
print("\r10%",end='')
time.sleep(2)
print("\r90%",end='')
time.sleep(2)
print("\r100%",end='')

Python 使用print实现进度

原文:https://www.cnblogs.com/heenhui2016/p/11423654.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!