扫码一下
查看教程更方便
解析:
关于Go中的map,以下说法是正确的
因此,本题选择 C
package main import ( "fmt" ) func main() { employeeSalary := make(map[string]int) employeeSalary["steve"] = 12000 employeeSalary["jamie"] = 15000 employeeSalary["mike"] = 9000 fmt.Println("employeeSalary map 内容:", employeeSalary) }