Merge pull request #2330 from falling/main

This commit is contained in:
jxxghp 2024-06-13 21:14:48 +08:00 committed by GitHub
commit 7f40863449
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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