ziheng - 學習機器人對話

import requests
# easygui
import easygui
for i in range(3):
    wen_ti = easygui.enterbox("請輸入你想問的問題:")
    url = "http://www.tuling123.com/openapi/api?key=d8dee202a87940bd866332938dd9ec52&info="+wen_ti
    xiang_ying = requests.get(url).json()
    easygui.msgbox(xiang_ying['text'])


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章