From 3d97c29d742073dc48442c80cdbb90c5a3c02be4 Mon Sep 17 00:00:00 2001 From: linqingping Date: Fri, 21 Feb 2025 10:18:04 +0800 Subject: [PATCH] =?UTF-8?q?Update=20util.py=E8=A7=A3=E5=86=B3=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=85=83=E7=BB=84=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决返回元组报错 --- core/utils/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/utils/util.py b/core/utils/util.py index 0c1b5b6ee..473172350 100644 --- a/core/utils/util.py +++ b/core/utils/util.py @@ -90,7 +90,7 @@ def remove_punctuation_and_length(text): char not in full_width_punctuations and char not in half_width_punctuations and char not in space and char not in full_width_space]) if result == "Yeah": - return 0 + return 0, result return len(result), result @@ -120,4 +120,4 @@ def check_password(password): return False # 如果满足所有条件,则返回True - return True \ No newline at end of file + return True