用户:
小黄不是咸鱼查看:0 回复:0 评论:0 创建时间:2023-12-02T20:39:25
【作品展示】

【作品介绍】
作品完整代码此作品主要运用了爬虫的Web API而制作
【作品源代码】
import requests
import bs4
while True :
w=input('请输入问题 ')
q={
'key':'free',
'appid':0,
'msg':w
}
url = 'http://api.qingyunke.com/api.php'
r = requests.get(url,params=q)
data=r.json()
print(data['content'])
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn