发布时间:2019-08-27 08:16:40编辑:auto阅读(4551)
第一步:安装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
51568
51145
41664
38421
32907
29881
28601
23562
23492
21841
1991°
2702°
2265°
2188°
2639°
2207°
2958°
4885°
4722°
3358°