相對於array, slice 提供了彈性, 不需要指定大小 ... b := a[2:4] c := a[:] ... import "fmt" func main(){ var a[]int a = append(a,1) a = append(a,2) for i ...
確定! 回上一頁