mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-11 22:06:51 +08:00
for-loop 翻译为 “for 循环”;格式微调
This commit is contained in:
@@ -53,9 +53,9 @@ slices_forrange2.go 给出了一个关于字符串的例子, `_` 可以用于
|
||||
|
||||
如果你需要修改 seasons[ix] 的值可以使用这个版本。
|
||||
|
||||
多维 slice 下的 for-range 方法:
|
||||
**多维 slice 下的 for-range:**
|
||||
|
||||
通过计算行数和矩阵值可以很方便的写出如(参考第 7.1.3 节)的 for-loops 方法来,例如(参考第 7.5 节的例子 multidim_array.go):
|
||||
通过计算行数和矩阵值可以很方便的写出如(参考第 7.1.3 节)的 for 循环来,例如(参考第 7.5 节的例子 multidim_array.go):
|
||||
|
||||
for row := range screen {
|
||||
for column := range screen[0] {
|
||||
|
Reference in New Issue
Block a user