File tree Expand file tree Collapse file tree 4 files changed +30
-4
lines changed Expand file tree Collapse file tree 4 files changed +30
-4
lines changed Original file line number Diff line number Diff line change 44Makefile
55Pipfile
66test *
7+ Untitled *
Original file line number Diff line number Diff line change 5050- 5.2 [ 学 gin 需要了解哪些库] ( http://golang.iswbm.com/en/latest/c05/c05_02.html )
5151- 2 . [ 项目结构及依赖管理] ( http://golang.iswbm.com/en/latest/c05/c05_03.html )
5252
53- ## 第六章:暂未分类
54- - 6.1 [ 整理了 20 个学习 Go 语言的精品网站] ( http://golang.iswbm.com/en/latest/c06/c06_01.html )
55- - 6.2 [ 配置高颜值 IDE:Goland] ( http://golang.iswbm.com/en/latest/c06/c06_02.html )
53+ ## 第六章:测试专题
54+ - 6.1 [ go test 工具命令详解] ( http://golang.iswbm.com/en/latest/c06/c06_01.html )
55+ - 6.2 [ 如何进行单元测试?] ( http://golang.iswbm.com/en/latest/c06/c06_02.html )
56+
57+ ## 第七章:暂未分类
58+ - 6.1 [ 整理了 20 个学习 Go 语言的精品网站] ( http://golang.iswbm.com/en/latest/c07/c07_01.html )
59+ - 6.2 [ 配置高颜值 IDE:Goland] ( http://golang.iswbm.com/en/latest/c07/c07_02.html )
5660
5761
5862---
Original file line number Diff line number Diff line change @@ -169,6 +169,27 @@ range 后可接数组、切片,字符串等
169169 hello, python
170170 hello, go
171171
172+ 如果你用一个变量来接收的话,接收到的是索引
173+
174+ .. code :: go
175+
176+ import "fmt"
177+
178+ func main() {
179+ myarr := [...]string{"world", "python", "go"}
180+ for i := range myarr {
181+ fmt.Printf("hello, %v\n", i)
182+ }
183+ }
184+
185+ 输出如下
186+
187+ ::
188+
189+ hello, 0
190+ hello, 1
191+ hello, 2
192+
172193--------------
173194
174195|image0 |
Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ Roadmap
1212
1313--------------------------------------------
1414
15- .. image :: http://image.python-online.cn/image-20200320125724880.png
15+ .. image :: http://image.python-online.cn/image-20200320125724880.png
You can’t perform that action at this time.
0 commit comments