程序import timefor i in range(11): time.sleep(0.5) print('\r当前进度:{0}{1}%'.format('▉'*i,(i*10)), end='')效果图: