1.TypeError: ‘list’ object is not callable
2.TypeError: ‘tuple’ object is not callable
3.TypeError: ‘tuple’ object does not support item assignment
4.NameError: name ‘cmp’ is not defined
5.TypeError: unhashable type: ‘list’
6.StopIteration
7.ValueError: array split does not result in an equal division
8.ValueError: operands could not be broadcast together with shapes () (5,) (10,)
9.AttributeError: ‘set’ object has no attribute ‘items’
10.ModuleNotFoundError: No module named ‘openpyxl’
11.cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:661: error: (-2:Unspecified error) could not find a writer for the specified extension in function ‘cv::imwrite_’
TypeError: ‘list’ object is not callable
将列表转换为元组时错误:
#coding=utf-8
list=[1,2,3]
tup=(7,8,9)
list2=list(tup)
print(list2)
提示错误:
TypeError: ‘list’ object is not callable(类型错误:“list”对象不可调用)
list被赋值,删除被赋值的“list”即可。我进行了重命名,如下:
#coding=utf-8
list2=[1,2,3]
tup