我有这本词典
StudentDictionary = {"156" :{"name":"steve", "lastvisit":"10-02-2012", "age":12}}
如果我有这本字典S = {"name":"steve", "lastvisit":"10-02-2012", "age":12}
,我知道如何使用以下方法显示年龄:pprint.pprint(S["age"])
但我不知道如何显示值ID = 156
或age = 12
来自 complex StudentDictionary
,知道I don't have a key associated with that value.
谢谢!