声明赋值遍历检测删除 声明var m1 map[int]string m2 := make(map[int]string) 赋值m1[1] = "xxx" 遍历for key, value := range m1 {} 检测value, ok := m1[1]if ok == true {} else {} 删除// 删除 key 为 1 的内容delete(m1, 1)