首页 > 代码库 > 进度条

进度条

import sys
import time
# val = sys.stdin.readline()[:-1]
# print(val)]
# print(‘1‘)
# time.sleep(1)
# print(‘2‘)
n = ‘·‘
for i in range(26):
    n += ‘·‘
    sys.stdout.write(‘\r‘)
    sys.stdout.write(‘%s%%%s‘%(i*4,n))
    sys.stdout.flush()
    time.sleep(0.1)

  

进度条