📌  相关文章
📜  go 使用范围运算符迭代数组 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:40.794000             🧑  作者: Mango

代码示例1
package main

import "fmt"

func main() {
    data := [...]string{"Ned", "Edd", "Jon", "Jeor", "Jorah"}
    for index, value := range data {
        fmt.Printf("Character %d of GoT is = %s\n", index, value)
    }
}