的價值排序DICS的名單我有一個看起來像這樣的列表:Python的 - 通過dict`s字典價值
persons = [{'id': 11, 'passport': {'id': 11, 'birth_info':{'date': 10/10/2016...}}},{'id': 22, 'passport': {'id': 22, 'birth_info':{'date': 11/11/2016...}}}]
我需要通過子鍵及其子鍵進行排序的人員名單 - 他們的birth_info日期。
我應該怎麼做? 感謝
這是一個你到了那裏'persons'的'list'內'dict'。 – metatoaster
對我的朋友 –
您應該修正您的示例數據:需要引用那些日期字符串以使該列表成爲合法的Python(以及合法的JSON)。 –