From 9d63eaca687da4f44b5dc6a2810b44f054261c9f Mon Sep 17 00:00:00 2001 From: wangweiye7840 Date: Fri, 10 May 2024 14:49:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E9=9A=BE=E5=BA=A6=E8=AF=8D?= =?UTF-8?q?=E5=85=B8=E5=8A=A0=E4=BA=86tqdm=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v4/database_tools_2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/工具v4/database_tools_2.py b/工具v4/database_tools_2.py index 178315af..93e96799 100644 --- a/工具v4/database_tools_2.py +++ b/工具v4/database_tools_2.py @@ -3081,7 +3081,7 @@ def generateProDict(cursor): #从数据库的cursor中得到problems字典的con def generate_diff_dict(pro_dict): #根据pro_dict的使用数据生成diff_dict难度词典 diff_dict = {} - for id in pro_dict: + for id in tqdm.tqdm(pro_dict,desc = "生成难度信息中"): usages = pro_dict[id]["usages"] if usages == []: diff_dict[id] = {"min":-1,"average":-1,"median":-1,"max":-1}