1.下載zh_wiki.py 和 langconv.py 兩個文件
1)從github上下載,地址:https://github.com/skydark/nstools/tree/master/zhtools
2.
from langconv import * title='憂郁的臺灣烏龜' title = Converter('zh-hans').convert(title) //調用langconv.py文件中的Converter方法 title.encode('utf-8')
1.下載zh_wiki.py 和 langconv.py 兩個文件
1)從github上下載,地址:https://github.com/skydark/nstools/tree/master/zhtools
2.
from langconv import * title='憂郁的臺灣烏龜' title = Converter('zh-hans').convert(title) //調用langconv.py文件中的Converter方法 title.encode('utf-8')
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。