def __init__(self, id=None, tag=None, part=None, edge=None, content=None, center=None, length=None, thickness=None, corners=None, angle=None, top_left_list=None, top_right_list=None, bottom_left_list=None, bottom_right_list=None, top_left=None, top_right=None, bottom_left=None, bottom_right=None): #继承父类的构造方法 fraction.__init__(self, id=None, tag=None, part=None, edge=None, content=None, center=None, length=None, thickness=None, corners=None) #以下几个列表没啥用 #拟角点的集合,可能多个 self.angle = [] #四个象限的角点集合 self.top_left_list = [] self.top_right_list = [] self.bottom_left_list = [] self.bottom_right_list = [] """角点非常重要""" self.top_left = top_left self.top_right = top_right self.bottom_left = bottom_left self.bottom_right = bottom_right
def __init__(self,id=None, tag=None, part=None, content=None, center=None, inclination=None, tilt=None, k=None): #继承父类的构造方法 fraction.__init__(self,tag=None, part=None, content=None) self.inclination=inclination self.tilt=tilt self.k=k self.id=id
def __init__(self,id=None, tag=None, part=None, edge=None, content=None, center=None, inclination=None, polarity=None, tilt=None, k=None): #继承父类的构造方法 fraction.__init__(self,id=None, tag=None, part=None, edge=None, content=None, center=None) self.inclination=inclination self.polarity=polarity self.tilt=tilt self.k=k