标签:rom ref git first pypi nbsp port .com pre
https://github.com/mozillazg/python-pinyin
# pip install pypinyin
from pypinyin import pinyin, lazy_pinyin, Style
print(lazy_pinyin(‘中心‘) )
print(lazy_pinyin(‘嗯‘))
print(pinyin(‘中心‘, style=Style.FIRST_LETTER))
print(type(pinyin(‘中心‘, style=Style.FIRST_LETTER)))
标签:rom ref git first pypi nbsp port .com pre
原文地址:http://www.cnblogs.com/littlehb/p/7845939.html