Skip to content

Commit efceac8

Browse files
authored
Merge pull request astaxie#733 from otokaze/master
解决zh 02.2冲突
2 parents 2f26d5c + 1b4d516 commit efceac8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

zh/02.2.md

-4
Original file line numberDiff line numberDiff line change
@@ -404,11 +404,7 @@ slice有一些简便的操作
404404

405405
`map`也就是Python中字典的概念,它的格式为`map[keyType]valueType`
406406

407-
<<<<<<< HEAD:zh/02.2.md
408-
我们看下面的代码,`map`的读取和设置也类似`slice`一样,通过`key`来操作,只是`slice``index`只能是`int`类型,而`map`多了很多类型,可以是`int`,可以是`string`及所有完全定义了`==``!=`操作的类型。
409-
=======
410407
我们看下面的代码,`map`的读取和设置也类似`slice`一样,通过`key`来操作,只是`slice``index`只能是`int`类型,而`map`多了很多类型,可以是`int`,可以是`string`及所有完全定义了`==``!=`操作的类型。
411-
>>>>>>> eead24cf064976b648de5826eab51880c803b0fa:zh/02.2.md
412408

413409
// 声明一个key是字符串,值为int的字典,这种方式的声明需要在使用之前使用make初始化
414410
var numbers map[string]int

0 commit comments

Comments
 (0)