python对象不接受参数_python调用类提示object()不接受任何参数如如何解决
代码如下:class Dog():def init(self, name, age):self.name = nameself.age = agedef sit(self):print(self.name.title() + "is now sitting.")def roll_over(self):print(self.name.title() + "rolled over!")调用类my_do...