package main
import (
"fmt"
)
func main() {
a := [5]int{1, 2, 3, 4, 5}
for k, v := range a {
fmt.Println("key:", k)
fmt.Println("value:", v)
}
}
本文出自 “dba天空” 博客,请务必保留此出处http://9425473.blog.51cto.com/9415473/1745729
原文:http://9425473.blog.51cto.com/9415473/1745729