好的,下面是实现该题目的 Python 代码:
```python
class Student:
def __init__(self, studentID, name, maths, english, computer):
self.studentID = studentID
self.name = name
self.maths = maths
self.english = english
self.computer = computer
def total_score(self):
return self.maths + self.english + self.computer
def average_score(self):
return self.total_score() / 3
students = [
Student('001', '张三', 90, 95, 100),
Student('002', '李四', 80, 85, 100),
Student('003', '王五', 75, 80, 93),
Student('004', '赵六', 85, 75, 90),
Student('005', '钱七', 70, 90, 85)
]
sorted_students = sorted(students, key=lambda s: s.total_score(), reverse=True)
print('姓名\t\t总分')
print('-----------------------------')
for student in sorted_students:
print(f'{student.name}\t\t{student.total_score()}')
```
输出结果为:
```
姓名 总分
-----------------------------
张三 285
李四 265
赵六 250
王五 248
钱七 245
```