开始 ❯
×
改变方向
更改主题,深色/浅色
package main import ("fmt") func main() { var a = make(map[string]string) a["brand"] = "Ford" a["model"] = "Mustang" a["year"] = "1964" fmt.Println(a) delete(a,"year") fmt.Println(a) }
map[brand:Ford model:Mustang year:1964]
map[brand:Ford model:Mustang]