📜  排序键python代码示例

📅  最后修改于: 2022-03-11 14:45:10.222000             🧑  作者: Mango

代码示例6
>>> class Student:
...     def __init__(self, name, grade, age):
...         self.name = name
...         self.grade = grade
...         self.age = age
...     def __repr__(self):
...         return repr((self.name, self.grade, self.age))