发布时间:2019-08-27 08:16:40编辑:auto阅读(4735)
第一步:安装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
52470
52389
42494
39402
33844
30805
29562
24478
24336
22707
20°
63°
261°
267°
276°
321°
267°
402°
384°
409°