Python接通图灵机器人


图灵机器人

图灵机器人特别low,问答水平并不高。

import requests
print("你好,我是图灵机器人")
while 1:
    s = input()
    resp = requests.post("http://www.tuling123.com/openapi/api", data={
        "key": "d59c41e816154441ace453269ea08dba",
        "info": s,
        "userid": "123456"
    })
    resp = resp.json()
    print(resp['text'])

青云客机器人

这个机器人脏话连篇

import requests
print('你好,我是青云客聊天机器人!')
while 1:
    s=input()
    resp=requests.get("http://api.qingyunke.com/api.php",{
        'key':'free',
        'appid':0,
        'msg':s
    })
    resp.encoding='utf8'
    resp=resp.json()
    print(resp['content'])

常用聊天机器人

青云客-相当智能
赛科
谛听机器人


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM