一、进度条展示简单代码
import time
def func(size, total_size):
val = int(size / total_size * 100)
str_style = '#' * (val//10)
time.sleep(0.1)
print('\r%s%%|%s' % (val, str_style), end='')
start = 0
end = 100
while True:
if start <= end:
func(start, end)
start += 1
else:
break