# encoding: utf-8
# Python 3.6.0
# 以5%的进度状态模拟windows启动界面的文本进度条
import time
lenght = 20
print("正在启动windows...".center(lenght,"-"))
for i in range(lenght + 1):
a = "|" * i
b = "." * (lenght - i)
c = (i / lenght) * 100
print("\r[{}->{}]{:^3.0f}%".format(a,b,c),end = "")
time.sleep(0.2)
print("\n"+"启动完成".center(lenght,"-"))