Extract values by key from a nested dictionary

前端 未结 3 679
广开言路
广开言路 2021-01-13 19:38

Given this nested dictionary, how could I print all the \"phone\" values using a for loop?

people = {
    \'Alice\': {
        \'phone\': \'2341\',
        \         


        
3条回答
提交回复
热议问题