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']]