Traceback (most recent call last):
File "E:\MY WORKS\Python\list operations.py", line 23, in <module>
new = list(tuple)
TypeError: 'str' object is not callable
答案 0 :(得分:4)
您可能已使用字符串覆盖了内置=
。在代码中查找类似的内容:
list
由于内置的list = "some_string"
功能不再可用,因此您尝试“呼叫”some_string
时会收到该错误。