赞
踩
下载pypinyin库
pip install pypinyin
import pypinyin
# 不带声调的(style=pypinyin.NORMAL)
def pinyin(word):
s = ''
for i in pypinyin.pinyin(word, style=pypinyin.NORMAL):
s += ''.join(i)
print(s)
pinyin("廖庆健")
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。