<7> 简体--繁体转换

# 安装
# pip install opencc-python-reimplemented

# t2s - 繁体转简体(Traditional Chinese to Simplified Chinese)
# s2t - 简体转繁体(Simplified Chinese to Traditional Chinese)
# mix2t - 混合转繁体(Mixed to Traditional Chinese)
# mix2s - 混合转简体(Mixed to Simplified Chinese)
# font = opencc.OpenCC('t2s')
# title = font.convert('待转换文本')
posted on 2022-11-29 21:54  不是霉蛋  阅读(464)  评论(0)    收藏  举报