网站介绍:文章浏览阅读725次。安装pip install pylangtools使用(1)繁体转简体from pylangtools.langconv import Converterif __name__=="__main__": traditional_sentence = '陳奕迅' simplified_sentence = Converter('zh-hans').convert(traditional_sentence) print(simplified_sentence)#陈奕迅(_converter('zh-hans')需要的包
- 链接地址:https://rosefun.blog.csdn.net/article/details/115138139
- 链接标题:繁体简体转换的python包pylangtools_converter('zh-hans')需要的包-CSDN博客
- 所属网站:rosefun.blog.csdn.net
- 被收藏次数:2176
- 网站标签:converter('zh-hans')需要的包