is_english_word 方法 更新

This commit is contained in:
falling 2024-06-13 21:10:20 +08:00
parent d8fe8b28e8
commit e994a9fc92

View File

@ -142,7 +142,7 @@ class StringUtils:
"""
判断是否为英文单词有空格时返回False
"""
return word.isalpha()
return word.encode().isalpha()
@staticmethod
def str_int(text: str) -> int: