码迷,mamicode.com
首页 > 编程语言 > 详细

python遇到的错误

时间:2018-03-02 01:24:54      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:class   __init__   div   更新   ##   代码   typeerror   port   ####   

######################
TypeError: module.__init__() takes at most 2 arguments (3 given)
继承错误,没有继承正确的类
出现问题代码:

import car
class BMW(car):

修正后的代码:

import car
class BMW(car.Car):

 

 

 

 

 

 

 

 

#####

后期遇到我难找到错误的问题会继续更新

python遇到的错误

标签:class   __init__   div   更新   ##   代码   typeerror   port   ####   

原文地址:https://www.cnblogs.com/-nbloser/p/8490894.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!