【发布时间】:2020-10-25 05:53:22
【问题描述】:
如何在python中访问嵌套字典中的元素?
myfamily = {
"child1" : {
"name" : "Emil",
"year" : 2004
},
"child2" : {
"name" : "Tobias",
"year" : 2007
},
"child3" : {
"name" : "Linus",
"year" : 2011
}
}
【问题讨论】:
-
这能回答你的问题吗? Accessing value inside nested dictionaries
标签: python