繁體字轉爲簡體字

除了ubuntu中安裝opencc的方法,還能夠使用如下代碼實現。node 如下內容徹底參考於 Python 繁體中文與簡體中文相互轉換python from langconv import * def Traditional2Simplified(sentence): ''' 將sentence中的繁體字轉爲簡體字 :param sentence: 待轉換的句子
相關文章
相關標籤/搜索