var x = []int{2:5,6,0:7}
func main() { fmt.Println(x) }
结果: [7 0 5 6]
本文标题:切片下标
本文链接:https://www.haomeiwen.com/subject/nqgqyhtx.html
网友评论