import time
len_ = 50
print("=" * 24 + 'starting' + '=' * 24)
for i in range(len_ + 1):
a = '*' * i
b = '.' * (len_ - i)
c = (i / len_) * 100
print ("\r{:.0f}%[{}{}]".format(c, a, b), end="")
time.sleep(0.1)
print('\n' + "=" * 24 + 'ending' + '=' * 24)
文本进度条------python
最新推荐文章于 2024-09-10 13:01:50 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)