diff --git a/test1.py b/test1.py index 1a5b360..1e6510d 100644 --- a/test1.py +++ b/test1.py @@ -1,7 +1,7 @@ import time from tqdm import tqdm -pbar = tqdm(total=30) +pbar = tqdm(total=30,desc="正在执行任务",ncols=150) for i in range(31): # 包含0~30 pbar.n = i # 直接设置进度 diff --git a/weex交易/30分钟仿盘交易.py b/weex交易/30分钟仿盘交易.py index be91f5d..2711376 100644 --- a/weex交易/30分钟仿盘交易.py +++ b/weex交易/30分钟仿盘交易.py @@ -160,7 +160,7 @@ class WeexTransaction: self.page.listen.start("public/quote/v1/getKlineV2") logger.success("浏览器开启抓包模式。。。") - self.pbar = tqdm(total=30) + self.pbar = tqdm(total=30, desc="等待时间中", ncols=150) # desc:进度条说明,ncols:长度 while True: