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
相關文章
相關標籤/搜索