import heapq class Student: def __init__(self, chinese, math, english): self.chinese = chinese self.math = math self.english = english self.sum = chinese + math + english def __lt__(self, other): # TODO: 实现比较逻辑,按照总分、语文、数学、英语的优先级排序 # """ # 自定义小于比较逻辑,适配 heapq 的最小堆实现最大堆效果 # 排序优先级:总分降序 &g...