tqdm配置

This commit is contained in:
shmilylty
2019-08-19 19:45:11 +08:00
parent 9b99b9fd35
commit b60d86fdc3
4 changed files with 19 additions and 9 deletions
+5 -1
View File
@@ -102,7 +102,11 @@ async def bulk_query_a(datas):
tasks.append(task)
if tasks: # 任务列表里有任务不空时才进行解析
futures = asyncio.as_completed(tasks)
for future in tqdm.tqdm(futures, total=len(tasks)):
for future in tqdm.tqdm(futures,
total=len(tasks),
desc='Progress',
smoothing=1.0,
ncols=True):
try:
await future
except: