python学习日志_错误解析#5——Type Error: object() takes no parameters
翻译:类型错误:object()不接受参数案例:(错误代码)classStudent(object):def__int__(self,name,score):self.name=nameself.score=scoredefprint_score(self):printself.scoreRonny=Student('Ronny',97)Ronny.print_score()Ronny.age=2