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'])

常用聊天机器人

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

原文地址:https://www.cnblogs.com/weiyinfu/p/6883043.html