字符串strings和sort的排序
package mainimport ( "fmt" "sort" "strings")func main() { //把字符串分割成数组 str:="1-2323-23-32-435-546-654-6-cn-zhx-n-nbh-sn" stri:=strings.Split(str ,"-") fmt.Println("1",stri) //1 [1 2323 ..