def is_chinese(uchar):
"""判断一个unicode是否是汉字"""
return True if u'\u4e00' <= uchar <= u'\u9fa5' else False
python 判断汉字
最新推荐文章于 2024-05-10 08:58:40 发布
def is_chinese(uchar):
"""判断一个unicode是否是汉字"""
return True if u'\u4e00' <= uchar <= u'\u9fa5' else False