[]int 排序升序排序123s := []int{2, 3, 1, 4}sort.Ints(s)// 排序会输出[1, 2, 3, 4] 降序排序12345s := []int{3, 2, 1, 4}sort.Slice(s, func(i, j int) bool { return s[i] > s[j]})// 排序会输出[4, 3, 2, 1]