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