跟着zxw老师视频学习,写这个程序时理解什么意思了,但是死活就是报错,仔细看了代码并没有写错,百度一下才发现是因为把–init–写成了-init-,还有一种错误是把–init–写成–int–也会报这个错,怕自己记不住,写下来比较靠谱,双横杠和单横杠区别开,init不要写成int
这是正确的写法,错误的写法是下面这种
相关文章
- python import 错误 TypeError: 'module' object is not callable
- Python Threading问题:TypeError in Threading. function takes 1 positional argument but 100 were given
- Python入门之TypeError: 'str' object is not callable错误
- Python TypeError: not all arguments converted during string formatting ——元组tuple(a)和(a,)的区别
- python中的TypeError错误解决办法
- Python:分段函数集成错误:“TypeError:无法确定......的真值”
- python dict get() takes no keyword arguments
- python3.x元组打印错误 TypeError: unsupported operand type(s) for %: 'NoneType' and 'tuple'
- MonkeyRunner_TypeError: __init__() takes at least 3 arguments (2 given)
- Python错误TypeError: write() argument must be str, not bytes