is_english_word 方法 更新
This commit is contained in:
parent
d8fe8b28e8
commit
e994a9fc92
@ -142,7 +142,7 @@ class StringUtils:
|
||||
"""
|
||||
判断是否为英文单词,有空格时返回False
|
||||
"""
|
||||
return word.isalpha()
|
||||
return word.encode().isalpha()
|
||||
|
||||
@staticmethod
|
||||
def str_int(text: str) -> int:
|
||||
|
Loading…
x
Reference in New Issue
Block a user