类属于中文报错?
# Enter a code
class Animal(): pass
dog = Animal()
dog.name = "旺财"
dog.age = 2
cat = Animal()
cat.name = 'Tom'
cat.age = 3
# Enter a code
class Animal(): pass
dog = Animal()
dog.name = "旺财"
dog.age = 2
cat = Animal()
cat.name = 'Tom'
cat.age = 3
2022-04-29
举报