汪子凯 发表于 2020-7-26 19:21:41

无聊和TA聊天吧

朗读版(机器人会把回答说出来)

from time import ybc


ans = ybc.enterbox('你想和机器人聊的话')
res = ybc.chat(ans)
ybc.speak(res, 7)

弹窗版(机器人会弹窗提示回答)

from time import ybc


ans = ybc.enterbox('你想和机器人聊的话')
res = ybc.chat(ans)
ybc.msgbox(res)

汪子凯 发表于 2020-7-26 19:30:44

代码1后面的7可以换成1~6,会有惊喜哦!:D
页: [1]
查看完整版本: 无聊和TA聊天吧