class Student(object): count=0 def __init__(self, name): self.name=name Student.count+=1
根据测试里面那个 if Student.count != 1: 猜到的要用Student.count 。。
Sign in to make a reply
永远短毛
class Student(object): count=0 def __init__(self, name): self.name=name Student.count+=1