爬虫3 requests之json 把json数据转化为字典

#json       将json数据转化为字典,方便操作数据
res = requests.get('http://httpbin.org/get')
print(res.json())       #res.json()返回的是字典
print(type(res.json()))

猜你喜欢

转载自www.cnblogs.com/cxhzy/p/10268646.html
今日推荐