发布时间:2019-08-27 08:16:40编辑:auto阅读(4590)
第一步:安装pyttsx第三方库
windows安装:pip install pyttsx
# -*- coding: utf-8-*-
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import pyttsx
engine = pyttsx.init()
engine.say('你好')
engine.runAndWait()
# 朗读一次
engine.endLoop()
上一篇: Python中的 // 与 / 的区别
下一篇: 利用Python imaplib和ema
51714
51374
41805
38578
33058
30070
28738
23733
23645
22014
2228°
2915°
2436°
2385°
2955°
2386°
3193°
5247°
5059°
3612°