码迷,mamicode.com
首页 > 编程语言 > 详细

进度条(python 实现)

时间:2019-08-10 23:04:35      阅读:109      评论:0      收藏:0      [点我收藏+]

标签:for   class   pre   range   实现   span   out   进度条   style   

1 import sys,time
2 for i in range(50):
3     sys.stdout.write(#)
4     time.sleep(0.1)
5     if i in[10,20,40,50]:
6         sys.stdout.flush()
7 
8 if __name__ == __main__:
9     pass

 

进度条(python 实现)

标签:for   class   pre   range   实现   span   out   进度条   style   

原文地址:https://www.cnblogs.com/zach0812/p/11333338.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!