发布时间:2019-08-27 08:16:40编辑:auto阅读(4723)
第一步:安装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
52363
52282
42410
39304
33775
30735
29476
24401
24266
22638
147°
152°
161°
179°
154°
269°
258°
277°
275°
327°