主页
Go
Go For 循环
demo_for8
运行 ❯
×
更改方向
保存代码
更改主题
package main import ("fmt") func main() { fruits := [3]string{"apple", "orange", "banana"} for idx, _ := range fruits { fmt.Printf("%v\n", idx) } }
0
1
2