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}