排序:1234nums := []int {2,5,4,8,1,3,9}sort.Slice(nums, func(i,j int)bool{ return nums[i]<nums[j]}) // 升序排序,降序fanzhi