Python 字典包含在字典中包含的列表中

Python 字典包含在字典中包含的列表中,python,python-3.x,list,dictionary,Python,Python 3.x,List,Dictionary,使用Python 3.6。我在查询Web服务后获得一个JSON字符串。我没有能力更改该答复的格式 成功呼叫后,我收到以下数据结构: {'infos': {'next_start': '0 0 0 0 0 0 0 0 0 1', 'nhits': 0, 'nresults': 0, 'sources': [{'indexingDate': {'vaul1': 1534796606,

使用Python 3.6。我在查询Web服务后获得一个JSON字符串。我没有能力更改该答复的格式

成功呼叫后,我收到以下数据结构:

{'infos': {'next_start': '0 0 0 0 0 0 0 0 0 1',
           'nhits': 0,
           'nresults': 0,
           'sources': [{'indexingDate': {'vaul1': 1534796606,
                                     'vault2': 1534796562,
                                     'vault3': 1534796735,
                                     'vault4': 1534796768,
                                     'vault5': 1534796550},
                    'name': 'name1',
                    'status': True,
                    'time': '484'}],
           'version': '1.1'}}
如何一次性访问“name”的值

我试过这个:

response['infos']['sources'](0)['name']
但是我从python中得到了这个错误:

TypeError: 'list' object is not callable
我显然错过了一些东西,但我想不出来

提前感谢您的帮助

您就快到了

response['infos']['sources'][0]['name']
你很接近

response['infos']['sources'][0]['name']

请尝试
response['infos']['sources'][0]['name']
。请尝试
response['infos']['sources'][0]['name']
。谢谢,它很管用。简单的事情会带来很大的不同。谢谢,这很有效。简单的事情会有很大的不同。