Update 02.2.md
fix bug
This commit is contained in:
@@ -450,7 +450,7 @@ slice := array[2:4]
|
||||
// 声明一个key是字符串,值为int的字典,这种方式的声明需要在使用之前使用make初始化
|
||||
var numbers map[string]int
|
||||
// 另一种map的声明方式
|
||||
numbers := make(map[string]int)
|
||||
numbers = make(map[string]int)
|
||||
numbers["one"] = 1 //赋值
|
||||
numbers["ten"] = 10 //赋值
|
||||
numbers["three"] = 3
|
||||
|
||||
Reference in New Issue
Block a user