Commit c9027ffa by mervin

实现简单对话

parent 8283ef25
import aiml
import jieba
kernel = aiml.Kernel()
kernel.learn("3.2-homework-mervin.xml")
kernel.respond("load aiml homework")
while True:
print(kernel.respond(" ".join(jieba.cut_for_search(input("请输入您的问题>>")))))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment