#!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'MFC'
__time__ = '2019-04-12 10:51'

"""
最简单的进度条
"""

import time

scale = 10

print("---执行开始---")

for i in range(scale + 1):
    a = "*" * i
    b = "." * (scale - i)
    c = (i / scale) * 100

    print("{:^4.0f}%[{}->{}]".format(c, a, b))
    time.sleep(0.1)

print("---执行结束---")
