Python 使用print实现进度

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='')
posted @ 2019-08-28 13:57  何大卫  阅读(943)  评论(0编辑  收藏  举报