This commit is contained in:
jxxghp 2023-10-09 09:09:59 +08:00
parent 81ed465607
commit fe63275a6b

View File

@ -68,6 +68,8 @@ class StringUtils:
""" """
判断是否含有中文 判断是否含有中文
""" """
if not word:
return False
if isinstance(word, list): if isinstance(word, list):
word = " ".join(word) word = " ".join(word)
chn = re.compile(r'[\u4e00-\u9fff]') chn = re.compile(r'[\u4e00-\u9fff]')