- 授权协议: GPL
- 开发语言: Python
- 操作系统: 跨平台
- 软件首页: https://github.com/cleverdeng/pinyin.py
- 官方下载: https://github.com/cleverdeng/pinyin.py/downloads
软件介绍
汉字转拼音,自带词库 With Python
from pinyin import PinYin test = PinYin() test.load_word() test.hanzi2pinyin(string='钓鱼岛是中国的') //Out:['diao', 'yu', 'dao', 'shi', 'zhong', 'guo', 'de'] test.hanzi2pinyin_split(string=string, split="-") //diao-yu-dao-shi-zhong-guo-de
