Python:重载构造函数时出现问题,错误“ __init __()接受了3个位置参数,但给出了4个位置参数”。

我的课程继承了sqlaclhemy模型,并具有2个构造函数:

class QModel(db.Model):
    __tablename__ = 'model'


    def __init__(self, par1, par2, par3):
        super(QModel, self).__init__()



    def __init__(self, par1, par2):
        super(QModel, self).__init__()

当我尝试实例化它时,出现错误:

model = QModel(1,2,3)

“ init()接受3个位置参数,但给出了4个”

此代码有什么问题?