文件名称:python进度条
文件大小:5KB
文件格式:PY
更新时间:2018-10-10 18:20:41
进度条
from progressbar import BouncingBar,FormatLabel,ProgressBar, RotatingMarker def progressbar(): widgets = [FormatLabel('Csdn Comment delay 60s: %(value)d/1300-> '), BouncingBar(marker=RotatingMarker())] pbar = ProgressBar(widgets=widgets) for i in pbar((i for i in range(1300))): time.sleep(0.05)