```go
func f2() {
ia := [...]int{1, 2, 3, 4, 5}
ia2 := ia[1:3]
for i := 6; i < 10; i++ {
ia2 = append(ia2, i)
}
fmt.Println(ia, ia2)
}
func f1() {
ia := [...]int{1, 2, 3, 4, 5}
ia2 := ia[1:3]
ia2 = append(ia2, 6,7,8,9)
fmt.Println(ia, ia2)
}
```
有疑问加站长微信联系(非本文作者))