我有一个简单的类,其属性可以包含同一类的对象列表classBoxItem:def__init__(self,name,**kw):self.name=nameself.boxItems=[]...#moreattributesherebox1=BoxItem('NormalBox')box2=BoxItem('FriendlyBox')box3=BoxItem('CoolBox')box4=BoxItem('BigBox',[box1,box2])#containssomechildrenexample=BoxItem('ExampleBox',[box4,box3])#contain