版权声明:欢迎交流:[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']]
https://github.com/mozillazg/python-pinyin
$ pip install pypinyin
>>> pinyin('下雨天', style=Style.INITIALS, strict=False)
[['x'], ['y'], ['t']]