TypeError: object.__init__() takes no parameters 5
classProperty:#superclassdef__init__(self,square_feet='',bed='',baths='',**kwargs):su...
class Property:#super class def __init__(self,square_feet=' ',bed=' ',baths=' ',**kwargs): super(self).__init__(**kwargs) self.square_feet = square_feet self.bed = bed self.baths = bathsclass House(Property): valid_garage = ("attached","detached","none") valid_fenced = ("yes","no") def __init__(self,num_stories=' ',garage=' ',fenced=' ',**kwargs): super(Property,self).__init__(**kwargs) self.num_stories = num_stories self.garage = garage self.fenced = fencedclass Purchase: def __init__(self,price=' ',taxes=' ',**kwargs): super(self).__init__(**kwargs) self.price = price self.taxes = taxes
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询