定义map类型
1.make
var a = make(map[string]int)
a["one"] = 1
a["two"] = 2
2.
b :=map[string]int{
"a" : 1,
"b" : 2,
}
删除一个key
delete
定义map类型
1.make
var a = make(map[string]int)
a["one"] = 1
a["two"] = 2
2.
b :=map[string]int{
"a" : 1,
"b" : 2,
}
删除一个key
delete