json="{\"count\":9,\"sub_images\":[{\"url\":\"http:\\/\\/p3.pstatp.com\\/origin\\/32040003ff7b9e3d5b0e\",\"width\":690,\"url_list\":[{\"url\":\"http:\\/\\/p3.pstatp.com\\/origin\\/32040003ff7b9e3d5b0e\"},{\"url\":\"http:\\/\\/pb9.pstatp.com\\/origin\\/32040003ff7b9e3d5b0e\"},{\"url\":\"http:\\/\\/pb1.pstatp.com\\/origin\\/32040003ff7b9e3d5b0e\"}],\"uri\":\"origin\\/32040003ff7b9e3d5b0e\",\"height\":1035},{\"url\":\"http:\\/\\/p1.pstatp.com\\/origin\\/32110002484d3fdc2747\",\"width\":690,\"url_list\":[{\"url\":\"http:\\/\\/p1.pstatp.com\\/origin\\/32110002484d3fdc2747\"},{\"url\":\"http:\\/\\/pb3.pstatp.com\\/origin\\/32110002484d3fdc2747\"},{\"url\":\"http:\\/\\/pb9.pstatp.com\\/origin\\/32110002484d3fdc2747\"}],\"uri\":\"origin\\/32110002484d3fdc2747\",\"height\":1035},{\"url\":\"http:\\/\\/p1.pstatp.com\\/origin\\/321100024850a58469a9\",\"width\":690,\"url_list\":[{\"url\":\"http:\\/\\/p1.pstatp.com\\/origin\\/321100024850a58469a9\"},{\"url\":\"http:\\/\\/pb3.pstatp.com\\/origin\\/321100024850a58469a9\"},{\"url\":\"http:\\/\\/pb9.pstatp.com\\/origin\\/321100024850a58469a9\"}],\"uri\":\"origin\\/321100024850a58469a9\",\"height\":1035},{\"url\":\"http:\\/\\/p3.pstatp.com\\/origin\\/3206000248311e7dc5db\",\"width\":690,\"url_list\":[{\"url\":\"http:\\/\\/p3.pstatp.com\\/origin\\/3206000248311e7dc5db\"},{\"url\":\"http:\\/\\/pb9.pstatp.com\\/origin\\/3206000248311e7dc5db\"},{\"url\":\"http:\\/\\/pb1.pstatp.com\\/origin\\/3206000248311e7dc5db\"}],\"uri\":\"origin\\/3206000248311e7dc5db\",\"height\":1035},{\"url\":\"http:\\/\\/p3.pstatp.com\\/origin\\/32040003ff7ed2c9aead\",\"width\":690,\"url_list\":[{\"url\":\"http:\\/\\/p3.pstatp.com\\/origin\\/32040003ff7ed2c9aead\"},{\"url\":\"http:\\/\\/pb9.pstatp.com\\/origin\\/32040003ff7ed2c9aead\"},{\"url\":\"http:\\/\\/pb1.pstatp.com\\/origin\\/32040003ff7ed2c9aead\"}],\"uri\":\"origin\\/32040003ff7ed2c9aead\",\"height\":1035},{\"url\":\"http:\\/\\/p1.pstatp.com\\/origin\\/31f70003119a1b3144e0\",\"width\":690,\"url_list\":[{\"url\":\"http:\\/\\/p1.pstatp.com\\/origin\\/31f70003119a1b3144e0\"},{\"url\":\"http:\\/\\/pb3.pstatp.com\\/origin\\/31f70003119a1b3144e0\"},{\"url\":\"http:\\/\\/pb9.pstatp.com\\/origin\\/31f70003119a1b3144e0\"}],\"uri\":\"origin\\/31f70003119a1b3144e0\",\"height\":1035},{\"url\":\"http:\\/\\/p3.pstatp.com\\/origin\\/31fe0003045ad13b6b2e\",\"width\":690,\"url_list\":[{\"url\":\"http:\\/\\/p3.pstatp.com\\/origin\\/31fe0003045ad13b6b2e\"},{\"url\":\"http:\\/\\/pb9.pstatp.com\\/origin\\/31fe0003045ad13b6b2e\"},{\"url\":\"http:\\/\\/pb1.pstatp.com\\/origin\\/31fe0003045ad13b6b2e\"}],\"uri\":\"origin\\/31fe0003045ad13b6b2e\",\"height\":1035},{\"url\":\"http:\\/\\/p1.pstatp.com\\/origin\\/31f70003119d7438f920\",\"width\":690,\"url_list\":[{\"url\":\"http:\\/\\/p1.pstatp.com\\/origin\\/31f70003119d7438f920\"},{\"url\":\"http:\\/\\/pb3.pstatp.com\\/origin\\/31f70003119d7438f920\"},{\"url\":\"http:\\/\\/pb9.pstatp.com\\/origin\\/31f70003119d7438f920\"}],\"uri\":\"origin\\/31f70003119d7438f920\",\"height\":1035},{\"url\":\"http:\\/\\/p1.pstatp.com\\/origin\\/321100024852d133f328\",\"width\":690,\"url_list\":[{\"url\":\"http:\\/\\/p1.pstatp.com\\/origin\\/321100024852d133f328\"},{\"url\":\"http:\\/\\/pb3.pstatp.com\\/origin\\/321100024852d133f328\"},{\"url\":\"http:\\/\\/pb9.pstatp.com\\/origin\\/321100024852d133f328\"}],\"uri\":\"origin\\/321100024852d133f328\",\"height\":1035}],\"max_img_width\":690,\"labels\":[\"\\u7f8e\\u5973\"],\"sub_abstracts\":[\"\\u8857\\u62cd\\uff1a\\u5317\\u4eac\",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \"],\"sub_titles\":[\"\\u8857\\u62cd\\uff1a\\u5317\\u4eac\\u7f8e\\u5973\\u8857\\u62cd\",\"\\u8857\\u62cd\\uff1a\\u5317\\u4eac\\u7f8e\\u5973\\u8857\\u62cd\",\"\\u8857\\u62cd\\uff1a\\u5317\\u4eac\\u7f8e\\u5973\\u8857\\u62cd\",\"\\u8857\\u62cd\\uff1a\\u5317\\u4eac\\u7f8e\\u5973\\u8857\\u62cd\",\"\\u8857\\u62cd\\uff1a\\u5317\\u4eac\\u7f8e\\u5973\\u8857\\u62cd\",\"\\u8857\\u62cd\\uff1a\\u5317\\u4eac\\u7f8e\\u5973\\u8857\\u62cd\",\"\\u8857\\u62cd\\uff1a\\u5317\\u4eac\\u7f8e\\u5973\\u8857\\u62cd\",\"\\u8857\\u62cd\\uff1a\\u5317\\u4eac\\u7f8e\\u5973\\u8857\\u62cd\",\"\\u8857\\u62cd\\uff1a\\u5317\\u4eac\\u7f8e\\u5973\\u8857\\u62cd\"]}"
dict = eval(json) data = json.loads(dict) if data and 'sub_images' in data.keys(): sub_images = data.get('sub_images') print(sub_images)
用eval把字符串转化为json,再用loads转化为字典
data.keys()获取所有的属性名
value = 字典.get(key)