势必辉煌

2019年8月14日

一个进度条小程序

摘要: import sys, time def progress(percent, width=50): # 设置进度条的宽度 if percent >= 100: # 当百分比 >= 100 时; percent = 100 # 直接将百分比设置为 100% show_str = ('[%%-%ds]' 阅读全文

posted @ 2019-08-14 10:58 势必辉煌 阅读(638) 评论(0) 推荐(0) 编辑

导航