如何解决缩进和属性错误?

class Students:
       def __init__(self,name,age):
                  self.name= name
                  self.age= age
class Students:
       def _init_(self,name,age):
                self.name = name
                self.age = age
        def displayStudent(self):
                   return("Student name is" + self.name + "and age is" + str(self.age))

stu= Students("Chad",15)
stu.displayStudents()
评论