s := []int{5, 2, 6, 3, 1, 4}
数字降序排列sort.Sort(sort.Reverse(sort.IntSlice(s)))
升序排列 sort.Ints(s)

文档更新时间: 2021-06-28 23:31   作者:Yoby