进度条
num = 0
import sys,time
for i in range(20):
num += 1
sys.stdout.write('\r|%s%s|%s%%'%('\033[1;31;0m▇\033[0m'*num,'▇'*(20-num),num*5))
# sys.stdout.flush()
time.sleep(0.2)
sys.stdout.write('\r|%s|%s'%('\033[1;31;0m▇▇▇▇▇▇▇恭喜加载完成▇▇▇▇▇▇▇\033[0m','100%'))
结果为