var sl []int
sl = []int{1, 2, 3, 4}
fmt.Println(sl, len(sl), cap(sl))
sl = append(sl, 100)
fmt.Println(sl, len(sl), cap(sl))
sl3 := sl[1:4]
fmt.Println(sl3, len(sl3), cap(sl3))
![image.png](https://static.golangjob.cn/230713/1eb2616eea64ed7b444fabb52f26841e.png)