类和对象object() takes no parameters怎么解决
class student():def _int_(self,b,c):
self.sum1=b
self.max1=c
def e(self,b):
print(self.sum1)
def d(self,c):
print(self.max1)
si=student('a',)
print(si.e())
print(si.d())
print("aaa")
line 10, in <module>
si=student('a',)
TypeError: object() takes no parameters 你没有定义__init__方法啊
页:
[1]