【发布时间】:2016-08-11 22:46:20
【问题描述】:
我只是想不通....我知道python 可以识别我的声音,但我不知道如何让python 可以听到文字。
from time import sleep
import sys
print("Tell me something...")
LOL = input()
sleep(2)
print("Thinking...")
sleep(2)
if LOL == 'Hey' or LOL == 'Hello':
??? #I want it to say Hello too!
else:
print("ERROR")
sys.exit()
【问题讨论】:
-
这个怎么样....code.activestate.com/recipes/…