def insertself hei #补充代码添加身高为hei的学生到TSet中要求添加学生后学生表中的身高保持有升序。
self.students.append(hei) # 先将身高添加到学生表中 self.students.sort() # 对学生表按身高升序排序
原文地址: https://www.cveoy.top/t/topic/fbq5 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
self.students.append(hei) # 先将身高添加到学生表中 self.students.sort() # 对学生表按身高升序排序
原文地址: https://www.cveoy.top/t/topic/fbq5 著作权归作者所有。请勿转载和采集!