发布时间:2019-08-27 08:16:40编辑:auto阅读(4364)
第一步:安装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
49904
49154
39827
36870
31260
28108
27059
21859
21794
20140
83°
79°
262°
281°
902°
1617°
1510°
1280°
2596°
1556°