Python 使用print实现进度

时间:2019-08-28 14:23:11   收藏:0   阅读:104
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='')

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!