进度条

1.进度条

def func(size,total_size):
    val = int(size/total_size * 100)
    time.sleep(0.1)
    print('
%s%%|%s'%(val,''*val,),end='')
for i in range(101):
    func(i,100)
原文地址:https://www.cnblogs.com/xiaowangba9494/p/11423048.html