• 2022-06-07
    以下有关类的声明,正确的是
    A: class Student(object) def __init__(self, name, score): self.name = name self.score = score
    B: class Student(object) def __init__(self, name, score) self.name = name self.score = score
    C: class Student(object): def __init__(self, name, score): self.name = name self.score = score
    D: class Student(object): def __int__(self, name, score): self.name = name self.score = score