题解 | #首都#
首都
http://www.nowcoder.com/practice/03a5031ed7ad4a7db897fd9ed982ea57
cites_dict = {'Beijing':{'Capital':'China'},
'Moscow':{'Capital':'Russia'},
'Paris':{'Capital':'France'}
}
for dict in sorted(cites_dict):
print(f"{dict} is the capital of {cites_dict[dict]['Capital']}!")
'Moscow':{'Capital':'Russia'},
'Paris':{'Capital':'France'}
}
for dict in sorted(cites_dict):
print(f"{dict} is the capital of {cites_dict[dict]['Capital']}!")