首页 > TAG信息列表 > 20190902

go map的增删改查

package main import "fmt" func main() {   //定义map   a := make(map[int]string)      //增加   a[20190902] = "abc"   a[20190903] = "cde"   fmt.Println(a)   //修改   a[20190902] = "aaa"