Update util.py解决返回元组报错

解决返回元组报错
This commit is contained in:
linqingping 2025-02-21 10:18:04 +08:00 committed by GitHub
parent afa469c08c
commit 3d97c29d74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]) 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": if result == "Yeah":
return 0 return 0, result
return len(result), result return len(result), result
@ -120,4 +120,4 @@ def check_password(password):
return False return False
# 如果满足所有条件,则返回True # 如果满足所有条件,则返回True
return True return True