一. 静态属性.类方法.静态方法 1.1静态属性 class Room: def __init__(self,name,owner,width,length): self.name=name self.owner=owner self.width=width self.length=length @property def cal_area(self): return self.width * self.length r1=Room('厕所','alex',1000,100) print(r1.…