golang数组
文章目录
go有两种创建数组的方式
arr1 := [10]int{0,1,2,3,4,5,6,7,8,9}arr2 := [...]int{0,1,2,3,4,5,6,7,8,9}
runtime表示
type StringHeader struct {
Data uintptr
Len int
}go有两种创建数组的方式
arr1 := [10]int{0,1,2,3,4,5,6,7,8,9}arr2 := [...]int{0,1,2,3,4,5,6,7,8,9}runtime表示
type StringHeader struct {
Data uintptr
Len int
}
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论