TabError: inconsistent use of tabs and spaces in indentation

 

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

Python 中需要用tab 键来空格

 

SyntaxError: invalid character in identifier

中英文没有切换好

 

TabError: inconsistent use of tabs and spaces in indentation

空格问题;;

 

 

name.login_attempts()

TypeError: 'int' object is not callable

调用int时出错:需要重新定义变量名

 

 

IndentationError: expected an indented block

在定义类之后没有再定义了

 

super().__init__(make, module, year)

TypeError: object.__init__() takes no arguments

继承error

class ElectricCar(Car)括号内的car没有写,所以出现了takes no arguments 的错误。

 

IndentationError: unexpected indent

没有锁进,把空格去掉。

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄