会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Loading
个人历程
博客园
首页
新随笔
联系
订阅
管理
2022年2月22日
使用sort包对任意类型元素的集合进行排序
摘要: 使用sort包的函数进行排序时,集合需要实现sort.Inteface接口,该接口中有三个方法: // Len is the number of elements in the collection. Len() int // Less reports whether the element wit
阅读全文
posted @ 2022-02-22 10:30 Allfuture
阅读(96)
评论(0)
推荐(0)
编辑
公告