a = {'zhangsan':{'name':'zhangsan','age':'5'}}
print(a['zhangsan']['age'])
打印结果为:5
本文标题:可以连续使用字典的key
本文链接:https://www.haomeiwen.com/subject/piltlrtx.html
网友评论