题解 | #首都#
首都
https://www.nowcoder.com/practice/03a5031ed7ad4a7db897fd9ed982ea57
import sys cities_dict={'Beijing': {'Capital': 'China'},'Moscow': {'Capital': 'Russia'},'Paris': {'Capital': 'France'}} for i in cities_dict.keys(): print('{} is the capital of {}!'.format(i,cities_dict.get(i).get('Capital')))