Merge pull request #2330 from falling/main
This commit is contained in:
commit
7f40863449
@ -142,7 +142,7 @@ class StringUtils:
|
|||||||
"""
|
"""
|
||||||
判断是否为英文单词,有空格时返回False
|
判断是否为英文单词,有空格时返回False
|
||||||
"""
|
"""
|
||||||
return word.isalpha()
|
return word.encode().isalpha()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def str_int(text: str) -> int:
|
def str_int(text: str) -> int:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user