import sys,time
for i in range(51):
sys.stdout.write('\r')
sys.stdout.write('%s%%|%s' % (int(i/50*100),int(i)*'#'))
sys.stdout.flush()
time.sleep(0.35)
import sys,time
for i in range(51):
sys.stdout.write('\r')
sys.stdout.write('%s%%|%s' % (int(i/50*100),int(i)*'#'))
sys.stdout.flush()
time.sleep(0.35)
转载于:https://www.cnblogs.com/ezway/p/6418646.html