发布时间:2019-08-27 08:16:40编辑:auto阅读(5043)
第一步:安装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
54633
41412
35984
31483
26373
26084
24596
20190
16161
15583
2578°
2351°
2456°
2585°
2546°
2756°
2689°
2523°
2559°
2531°