创建一个空字典
dist = {}
给字典添加数据
dist =["name"]="zhangfei"
print(dist)
获取字典中的名字
print(dist["name"])
name=dist.get("name")
print(name)
删除字典中的值
dist.pop("name")
print(dist)
dist = {}
dist =["name"]="zhangfei"
print(dist)
print(dist["name"])
name=dist.get("name")
print(name)
dist.pop("name")
print(dist)