python包 pypinyin 中文转化为拼音

版权声明:欢迎交流:[email protected] https://blog.csdn.net/luo617/article/details/81712904

https://github.com/mozillazg/python-pinyin

$ pip install pypinyin

>>> pinyin('下雨天', style=Style.INITIALS, strict=False)
[['x'], ['y'], ['t']]

猜你喜欢

转载自blog.csdn.net/luo617/article/details/81712904