哪里错了,帮忙解答下
def __cmp__(self, s): if self.score > s.score: return 1 elif self.score < s.score: return -1 elif self.name > s.name: return 1 elif self.name < s.name: return -1 else: return 0 怎么错了
def __cmp__(self, s): if self.score > s.score: return 1 elif self.score < s.score: return -1 elif self.name > s.name: return 1 elif self.name < s.name: return -1 else: return 0 怎么错了
2015-04-23
举报