def webind(message): h = Handle(message.source) return h.bind(message.content)
def voice_consult(message): if message.recognition == u"查询": h = Handle(message.source) return h.consult() return "What are you talking about?"
def word_consult(message): h = Handle(message.source) return h.consult()
#coding:utf-8 from zccx.handle import Handle s = Handle('o_HVEuK5VYfCGNJGc6MrwY2rFF5I') print(s.bind(u"绑定 韩龙 B1304013!")) print(s.bind(u"绑定 韩龙! B13040133")) print(s.bind(u"绑定 韩龙 B13040133")) print(s.consult())