生成难度词典加了tqdm条
This commit is contained in:
parent
1cf5695c34
commit
9d63eaca68
|
|
@ -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}
|
||||
|
|
|
|||
Reference in New Issue