|
50鱼币
- dict = {
- 'result': {
- 'categorys': [{
- 'categorynum': '001',
- 'count': '55',
- 'categoryname': '重庆公共资源'
- }],
- 'totalcount': 55,
- 'records': [{
- 'pubinwebdate': '2022-10-11 17:54:26',
- 'titlenew': '重庆市食品药品检验检测研究院迁(扩)建项目(二期)电梯采购及安装工程答疑补遗文件',
- 'infoa': '',
- 'title': '重庆市食品药品检验检测研究院迁(扩)建项目(二期)电梯采购及安装工程答疑补遗文件',
- 'infod': '50000120220708001030101',
- 'infoc': '市级',
- 'categorytype': '工程招投标',
- 'content': '',
- 'rowid': '6592031',
- 'highlight': {},
- 'score': None,
- 'istop': '0',
- 'kaibiaodate': '2022-10-11 17:54:25',
- 'syscollectguid': 'a2861e5f-8e5d-403d-b746-8abea733b966',
- 'id': 'cqggzyc6f8bf56-5b35-4391-bb06-3ba25aeccecb004002002010_001',
- 'sysscore': '0',
- 'categorynum': '004002002010',
- 'infoid': 'c6f8bf56-5b35-4391-bb06-3ba25aeccecb',
- 'categorytype2': '答疑补遗',
- 'zhuanzai': '来源于电子招投标系统',
- 'sysclicktimes': 0,
- 'ordernum': '0',
- 'webdate': '2022-10-11 23:59:59',
- 'projectno': '',
- 'customtitle': '',
- 'syscategory': '001',
- 'linkurl': '',
- 'tktype': '',
- 'infodate': '2022-10-11 17:54:26'
- }, {
- 'pubinwebdate': '2022-10-11 16:19:05',
- 'titlenew': '茶惠大道二标段检测工程的中标候选人公示',
- 'infoa': '',
- 'title': '茶惠大道二标段检测工程的中标候选人公示',
- 'infod': '50000120220913025090101',
- 'infoc': '市级',
- 'categorytype': '工程招投标',
- 'content': '',
- 'rowid': '6591187',
- 'highlight': {},
- 'score': None,
- 'istop': '0',
- 'kaibiaodate': '2022-10-11 00:00:00',
- 'syscollectguid': 'a2861e5f-8e5d-403d-b746-8abea733b966',
- 'id': 'cqggzyc5ab4832-7c72-4465-bb44-e2663fb6c007004002003002_001',
- 'sysscore': '0',
- 'categorynum': '004002003002',
- 'infoid': 'c5ab4832-7c72-4465-bb44-e2663fb6c007',
- 'categorytype2': '中标候选人公示',
- 'zhuanzai': '来源于电子招投标系统',
- 'sysclicktimes': 0,
- 'ordernum': '0',
- 'webdate': '2022-10-11 23:59:59',
- 'projectno': '',
- 'customtitle': '',
- 'syscategory': '001',
- 'linkurl': '',
- 'tktype': '',
- 'infodate': '2022-10-11 16:20:26'
- }, {
- 'pubinwebdate': '2023-01-13 16:32:13',
- 'titlenew': '关于为【国家畜牧科技城公共实训职教基地(荣昌职教中心工程二期)材料检测服务】 公开选取【工程招标代理】机构的公告',
- 'infoa': '',
- 'title': '关于为【国家畜牧科技城公共实训职教基地(荣昌职教中心工程二期)材料检测服务】 公开选取【工程招标代理】机构的公告',
- 'infod': '5002262038943582210100025',
- 'infoc': '荣昌区',
- 'categorytype': '中介超市',
- 'content': '',
- 'rowid': '7137421',
- 'highlight': {},
- 'score': None,
- 'istop': '0',
- 'kaibiaodate': '2022-10-10 09:28:34',
- 'syscollectguid': 'a2861e5f-8e5d-403d-b746-8abea733b966',
- 'id': 'cqggzyPNII_5002262038943582210100025004010001_001',
- 'sysscore': '0',
- 'categorynum': '004010001',
- 'infoid': 'PNII_5002262038943582210100025',
- 'categorytype2': '采购公告',
- 'zhuanzai': '',
- 'sysclicktimes': 0,
- 'ordernum': '0',
- 'webdate': '2022-10-10 09:28:34',
- 'projectno': '',
- 'customtitle': '',
- 'syscategory': '001',
- 'linkurl': '',
- 'tktype': '',
- 'infodate': '2023-01-13 16:32:13'
- }],
- 'scorllId': '0;0;1665394114000;7137421;',
- 'executetime': '0.245'
- }
- }
- dict1=(dict.values())
复制代码
多层字典嵌套的数据,请问如何解开是最快捷的方法,感谢大佬们了
- data = {
- 'result': {
- 'categorys': [{
- 'categorynum': '001',
- 'count': '55',
- 'categoryname': '重庆公共资源'
- }],
- 'totalcount': 55,
- 'records': [{
- 'pubinwebdate': '2022-10-11 17:54:26',
- 'titlenew': '重庆市食品药品检验检测研究院迁(扩)建项目(二期)电梯采购及安装工程答疑补遗文件',
- 'infoa': '',
- 'title': '重庆市食品药品检验检测研究院迁(扩)建项目(二期)电梯采购及安装工程答疑补遗文件',
- 'infod': '50000120220708001030101',
- 'infoc': '市级',
- 'categorytype': '工程招投标',
- 'content': '',
- 'rowid': '6592031',
- 'highlight': {},
- 'score': None,
- 'istop': '0',
- 'kaibiaodate': '2022-10-11 17:54:25',
- 'syscollectguid': 'a2861e5f-8e5d-403d-b746-8abea733b966',
- 'id': 'cqggzyc6f8bf56-5b35-4391-bb06-3ba25aeccecb004002002010_001',
- 'sysscore': '0',
- 'categorynum': '004002002010',
- 'infoid': 'c6f8bf56-5b35-4391-bb06-3ba25aeccecb',
- 'categorytype2': '答疑补遗',
- 'zhuanzai': '来源于电子招投标系统',
- 'sysclicktimes': 0,
- 'ordernum': '0',
- 'webdate': '2022-10-11 23:59:59',
- 'projectno': '',
- 'customtitle': '',
- 'syscategory': '001',
- 'linkurl': '',
- 'tktype': '',
- 'infodate': '2022-10-11 17:54:26'
- }, {
- 'pubinwebdate': '2022-10-11 16:19:05',
- 'titlenew': '茶惠大道二标段检测工程的中标候选人公示',
- 'infoa': '',
- 'title': '茶惠大道二标段检测工程的中标候选人公示',
- 'infod': '50000120220913025090101',
- 'infoc': '市级',
- 'categorytype': '工程招投标',
- 'content': '',
- 'rowid': '6591187',
- 'highlight': {},
- 'score': None,
- 'istop': '0',
- 'kaibiaodate': '2022-10-11 00:00:00',
- 'syscollectguid': 'a2861e5f-8e5d-403d-b746-8abea733b966',
- 'id': 'cqggzyc5ab4832-7c72-4465-bb44-e2663fb6c007004002003002_001',
- 'sysscore': '0',
- 'categorynum': '004002003002',
- 'infoid': 'c5ab4832-7c72-4465-bb44-e2663fb6c007',
- 'categorytype2': '中标候选人公示',
- 'zhuanzai': '来源于电子招投标系统',
- 'sysclicktimes': 0,
- 'ordernum': '0',
- 'webdate': '2022-10-11 23:59:59',
- 'projectno': '',
- 'customtitle': '',
- 'syscategory': '001',
- 'linkurl': '',
- 'tktype': '',
- 'infodate': '2022-10-11 16:20:26'
- }, {
- 'pubinwebdate': '2023-01-13 16:32:13',
- 'titlenew': '关于为【国家畜牧科技城公共实训职教基地(荣昌职教中心工程二期)材料检测服务】 公开选取【工程招标代理】机构的公告',
- 'infoa': '',
- 'title': '关于为【国家畜牧科技城公共实训职教基地(荣昌职教中心工程二期)材料检测服务】 公开选取【工程招标代理】机构的公告',
- 'infod': '5002262038943582210100025',
- 'infoc': '荣昌区',
- 'categorytype': '中介超市',
- 'content': '',
- 'rowid': '7137421',
- 'highlight': {},
- 'score': None,
- 'istop': '0',
- 'kaibiaodate': '2022-10-10 09:28:34',
- 'syscollectguid': 'a2861e5f-8e5d-403d-b746-8abea733b966',
- 'id': 'cqggzyPNII_5002262038943582210100025004010001_001',
- 'sysscore': '0',
- 'categorynum': '004010001',
- 'infoid': 'PNII_5002262038943582210100025',
- 'categorytype2': '采购公告',
- 'zhuanzai': '',
- 'sysclicktimes': 0,
- 'ordernum': '0',
- 'webdate': '2022-10-10 09:28:34',
- 'projectno': '',
- 'customtitle': '',
- 'syscategory': '001',
- 'linkurl': '',
- 'tktype': '',
- 'infodate': '2023-01-13 16:32:13'
- }],
- 'scorllId': '0;0;1665394114000;7137421;',
- 'executetime': '0.245'
- }
- }
- records = data['result']['records']
- for i in records:
- print(f'titlenew: {i["titlenew"]}')
- print(f'infod: {i["infod"]}')
- print('-' * 100)
复制代码
|
|