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

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

 

posted @ 2019-01-14 19:36  山…隹  阅读(1232)  评论(0)    收藏  举报