From c151a0efaa109aa806c40105cb86d1b3950458ea Mon Sep 17 00:00:00 2001 From: PlutoCtx Date: Tue, 23 May 2023 19:40:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E4=BA=86get=5Fdifficulty=5Fl?= =?UTF-8?q?evel=5Ffor=5Fuser=E7=9A=84=E5=A4=9A=E5=87=BA=E7=9A=84break?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/difficulty.py | 1 - 1 file changed, 1 deletion(-) diff --git a/app/difficulty.py b/app/difficulty.py index dfaf89b..8179c57 100644 --- a/app/difficulty.py +++ b/app/difficulty.py @@ -56,7 +56,6 @@ def get_difficulty_level_for_user(d1, d2): continue # 无需评级,跳过 elif stem.stemWord(k) in d2: # 如果用户的词的词根存在于词库d2的词根库中 d2[k] = d2[stem.stemWord(k)] # 按照词根进行评级 - break else: d2[k] = 3 # 如果k的词根都不在,那么就当认为是3级 return d2