发布时间:2019-08-27 08:16:40编辑:auto阅读(4557)
第一步:安装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
51597
51188
41692
38450
32936
29923
28627
23592
23524
21871
2033°
2742°
2288°
2217°
2694°
2242°
2991°
4933°
4790°
3407°