python 判斷漢字

def is_chinese(uchar): """判斷一個unicode是不是漢字""" if uchar >= u'\u4e00' and uchar<=u'\u9fa5': return True else: return False
相關文章
相關標籤/搜索