用VB做一个AI智能对话补丁代码

IF Instr(lcase(Text1.Text),"傻")>0 then Text2.Text =Text1.Text & "你才傻!"

IF Instr(lcase(Text1.Text),"呆")>0 then Text2.Text =Text1.Text & "你也呆!"

IF Instr(lcase(Text1.Text),"岁")>0 then Text2.Text =Text1.Text & "我有零岁。"

IF Instr(lcase(Text1.Text),"中国的四大名著")>0 then Text2.Text =Text1.Text & "《三国演义》、《红楼梦》、《西游记》、《水浒传》"

IF Instr(lcase(Text1.Text),"多少")>0 then Text2.Text =Text1.Text & "你说呢?"

IF Instr(lcase(Text1.Text),"什么")>0 then Text2.Text =Text1.Text & "难道世界上所有事多要有答案吗?"

IF Instr(lcase(Text1.Text),"吃")>0 then Text2.Text =Text1.Text & "你真是个吃货!"

IF Instr(lcase(Text1.Text),"你好")>0 then Text2.Text =Text1.Text & "你好!"

IF Instr(lcase(Text1.Text),"是")>0 then Text2.Text 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值