赞
踩
python -m pip install pyttsx3
import pyttsx3
sentence="Hello World"
pyttsx3.speak(sentence)
python -m pip install pypinyin
import pypinyin
name = "张三"
name_py = pypinyin.pinyin(name)
print(name_py)
输出结果:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。