• 授权协议:GPL
  • 开发厂商:-
  • 软件语言:Python
  • 更新日期:2012-08-27
pinyin.py

//Out:['diao','yu','dao','shi','zhong','guo','de']

pinyin.py Python汉字转拼音模块 项目简介

汉字转拼音,自带词库 With Pythonfrom 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

pinyin.py Python汉字转拼音模块 评论内容