题目:对数组var a = [...]int{3, 7, 8, 9, 1}
进行排序
a1 := [...]int{3, 7, 8, 9, 1}
sort.Ints(a1[:]) //对切片排序
fmt.Println(a1)
var a = [...]int{3, 7, 8, 9, 1}
进行排序 a1 := [...]int{3, 7, 8, 9, 1}
sort.Ints(a1[:]) //对切片排序
fmt.Println(a1)