# 定义字典:key-value 形式键值对
dic = {"name": "egon"}
print(dic)

#key 可以为那些类型:不可变类型
# value: 可以为哪些类型:所有类型
dic = {1: 1,3.14: 1, True: 1, (): 1, "a": 1}
print(dic)

# 增删改查
dic = {"name": "egon"}
print(dic)
#增
dic["age"] = 88
print(dic)
# {'name': 'egon', 'age': 88}

#删
del dic["name"]
print(dic)
# {'age': 88}