简单学生信息管理系统 Golang
package utils
import (
"fmt"
"os"
"sort"
)
//StuSystem 管理系统类
type StuSystem struct {
stus []Stu
//option 确定排序方式的选择
option int
}
func (stuSystem StuSystem) Len() int {
return len(stuSystem.stus)
}
func (stuSystem StuSystem) Less(i, j int) bool {
原创
2021-01-12 01:15:53 ·
183 阅读 ·
0 评论