python-12 字典and集合
键值对,可以为空dict1 ={'name':'Tom','gender':'man'}print(type(dict1)) #<class 'dict'>dict2 = {}dict3 = dict()增字典序列[key] = value若key存在,修改;不存在,添加字典为可变类型dict1['id'] = 110dict1['name'] = 'jc'删del(dict1)print(dict1) #NameError: name 'dict1' is