今天我就教教大家吧
运行代码如下
代码如下:
import requests
print('请输入你想说的或询问的(啥都可以):')
while True:
a=input()
url='https://api.ownthink.com/bot?appid=9ffcb5785ad9617bf4e64178ac64f7b1&spoken=%s'%a
te=requests.get(url).json()
data=te['data']['info']['text']
print(data)
记得一键三连哦!