python 字典添加元素

 

d = {0:10, 1:20}  
print(d)  
d.update({2:30})  
print(d)

 

posted @ 2018-11-19 10:11  anobscureretreat  阅读(839)  评论(0编辑  收藏  举报