python json结构

=====================================================json==============================
import requests
import json
url="https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?wd=na&json=1&p=3&sid=1459_19036_21110_25227_25436_25178&req=2&csor=2&pwd=n&cb=jQuery110205961681996541695_1514558500080&_=1514558500086"
resp=requests.get(url)
json_dict=json.loads(resp.text) #将json字符串转换为字典
#print(json_dict.keys()) #json中的“键”



安装mongodb链接需要【pymongo】 pip install pymongo

posted @ 2017-12-29 23:00  Justice-V  阅读(768)  评论(0编辑  收藏  举报