标签:class color dex style nbsp go数组 value pre pack
package main import "fmt" var a [5]int func main() { a := [5]int{1,3,5,7,8} var b int for index,value := range a{ fmt.Println(index,value) b += value } fmt.Println(b) }
标签:class color dex style nbsp go数组 value pre pack
原文地址:https://www.cnblogs.com/aaronthon/p/10630761.html