File tree 4 files changed +30
-4
lines changed
4 files changed +30
-4
lines changed Original file line number Diff line number Diff line change 4
4
Makefile
5
5
Pipfile
6
6
test *
7
+ Untitled *
Original file line number Diff line number Diff line change 50
50
- 5.2 [ 学 gin 需要了解哪些库] ( http://golang.iswbm.com/en/latest/c05/c05_02.html )
51
51
- 2 . [ 项目结构及依赖管理] ( http://golang.iswbm.com/en/latest/c05/c05_03.html )
52
52
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 )
56
60
57
61
58
62
---
Original file line number Diff line number Diff line change @@ -169,6 +169,27 @@ range 后可接数组、切片,字符串等
169
169
hello, python
170
170
hello, go
171
171
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
+
172
193
--------------
173
194
174
195
|image0 |
Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ Roadmap
12
12
13
13
--------------------------------------------
14
14
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