介绍
在这个挑战中,你将创建一个 Go 程序,使用 map 来管理学生成绩,并使用 sort.Slice()
函数实现按升序对成绩进行排序。该程序应显示排序后的学生姓名和成绩。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
go(("Golang")) -.-> go/DataTypesandStructuresGroup(["Data Types and Structures"])
go(("Golang")) -.-> go/AdvancedTopicsGroup(["Advanced Topics"])
go/DataTypesandStructuresGroup -.-> go/maps("Maps")
go/DataTypesandStructuresGroup -.-> go/structs("Structs")
go/AdvancedTopicsGroup -.-> go/sorting("Sorting")
subgraph Lab Skills
go/maps -.-> lab-437203{{"动态排序学生成绩"}}
go/structs -.-> lab-437203{{"动态排序学生成绩"}}
go/sorting -.-> lab-437203{{"动态排序学生成绩"}}
end