请问这个为什么会运行失败呢
calss Anmial(object):
def_init_(self,name,age):
self.name = name
self.age = age
dog = Person('Tim',4)
cat = Person('Aim',5)
print(dog.name)
print(dog.age)
print(cat.name)
print(cat.age)
calss Anmial(object):
def_init_(self,name,age):
self.name = name
self.age = age
dog = Person('Tim',4)
cat = Person('Aim',5)
print(dog.name)
print(dog.age)
print(cat.name)
print(cat.age)
2021-01-23
举报