class Box():
def __init__( ① ):
② =length1
③ =width1
④ =height1
def volume(self):
return ⑤
my_box=Box(10,20,30)
print("长方体体积是%.2f"%my_box.volume())
(1)self,length1,width1,height1;(2分) (2)self.length;(2分) (3)self.width; (2分) (4)self.height;(2分) (5)self.lengthself.widthself.height。(2分)