test_str = "aaaabbbccccc"
def func(test_str):
for char in test_str:
if "\u4e00" <= char <= "\u9fa5"
return "test_str 中包含汉字"
判断输入字符中是否有汉字
最新推荐文章于 2019-12-20 17:17:37 发布
test_str = "aaaabbbccccc"
def func(test_str):
for char in test_str:
if "\u4e00" <= char <= "\u9fa5"
return "test_str 中包含汉字"