import requests url = 'http://api.chatbot.cn/cloud/robot/5aa28b810d00008b2baa8545/answer?channel=app&userId=5aa28b810d00008b2baa8545' '&sessionId=0&question= ' question = '你知道张虹波?' r = requests.get(url + question) print(r.json()['answers'][0]['respond'])