私はこの辞書を持っています
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複合体からStudentDictionaryの値を表示する方法がわかりません。I don't have a key associated with that value.
ありがとう!