摘要: package main import "fmt" func main() { var m = map[int]string{ 90: "优秀", 80: "良好", 60: "及格", //逗号不能省略,会报错 } //遍历map中的元素 for k, v := range m { fmt.Println(k, v) } for s := range m {... 阅读全文
posted @ 2019-01-19 01:21 qstudy 阅读(411) 评论(0) 推荐(0) 编辑