#!/usr/bin/env python
# -*- coding:utf-8 -*- 
import sys,time
for a in range(101):
    #print a
    b = 100 -a
    #print b
    #sys.stdout.write(("\r[%s%s]%0.2f%%" %("#"*a,b*"",float(a))))
    sys.stdout.write(("\r[%s%s]%0.2f%%"%("#"*a,b*" ",float(a))))
    sys.stdout.flush()
    time.sleep(0.1)

  

相关文章:

  • 2021-06-11
  • 2022-01-18
  • 2021-06-27
  • 2021-09-08
  • 2021-09-01
  • 2021-12-27
  • 2021-09-14
  • 2022-03-01
猜你喜欢
  • 2022-12-23
  • 2021-08-25
  • 2022-12-23
  • 2021-07-14
  • 2021-11-08
  • 2021-10-10
相关资源
相似解决方案