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)
可以使用Python标准库中的tqdm模块来创建进度条,它可以帮助您跟踪程序的进度,例如:from tqdm import tqdm
for i in tqdm(range(10000)):
# do something
pass