标签:图片 image 覆盖 .com 改变 class img code inf
dic1 = {‘age‘:18,‘name‘:‘bowen‘,‘sex‘:‘male‘} dic1[‘high‘] =190 # 没有就增加 dic1[‘age‘] = 26 # 有就覆盖 print(dic1)
dic1 = {‘age‘:18,‘name‘:‘bowen‘,‘sex‘:‘male‘} dic1[‘high‘] =190 # 没有就增加 dic1[‘age‘] = 26 # 有就覆盖 print(dic1) dic1.setdefault(‘weght‘,89) print(dic1)
标签:图片 image 覆盖 .com 改变 class img code inf
原文地址:https://www.cnblogs.com/sunnybowen/p/10568059.html