#进度条 import time for i in range(100): time.sleep(1) print('[{}]{}%'.format('*'*i+' '*(100-i),i),end='\r')