python字符串只保留汉字

def is_chinese(uchar): """判断一个unicode是不是汉字""" if uchar >= u'\u4e00' and uchar <= u'\u9fa5': return True else: return False def is_number(uchar): """判断一个unicode是不是数字""" if
相关文章
相关标签/搜索