切片如何删除指定元素?
```go
a = append(a[:i], a[i+1:]...)
// or
a = a[:i+copy(a[i:], a[i+1:])]
```
https://github.com/golang/go/wiki/SliceTricks
#1
更多评论
```go
index := 3
b := append(a[:index-1], a[index:]...)
fmt.Println(b)
```
#3