奇怪的“典中典” cities_dict = {'Beijing': {'Capital': 'China'}, 'Moscow': {'Capital': 'Russia'}, 'Paris': {'Capital': 'France'}} for city, capital_dict in cities_dict.items(): print('{0} is the capital of {1}!'.format(city, capital_dict['Capital']))