map的性质(与切片的区别)
mapVariables6 := make([]map[string]interface{},2)
mapVariables6[0] = make(map[string]interface{})
mapVariables6[0]["name"] = "波哥"
mapVariables6[0]["age"] = 18
mapVariables6[0]["sex"] = "male"
mapVariables6[0]["height"] = 170
fmt.Println(mapVariables6[0])
fmt.Println(len(mapVariables6[0]))
mapVariables6[1] = make(map[string]interface{},2)
mapVariables6[1]["name"] = "老季"
mapVariables6[1]["age"] = 28
mapVariables6[1]["sex"] = "famale"
mapVariables6[1]["height"] = 170
mapVariables6[1]["weight"] = 180
fmt.Println(mapVariables6[1])