關於python2.7中super()的錯誤

1.TypeError: super() takes at least 1 argument (0 given) 原因:該方法調用super()是python3中的方法,在python3中運行正常,在python2中會報錯 如果在python2想要繼承父類的構造方法,則需要給super參數中傳入參數 2.TypeError: super() argument 1 must be type, not
相關文章
相關標籤/搜索