請問錯在哪里?
uj5u.com熱心網友回復:
這是所有代碼嗎?list是不是被你重新定義了。寫代碼時注意變數命名不要跟函式或者關鍵字重名。>>> list = [1,2,3,4]
>>> c = (1,2,3,4)
>>> b = list(c)
Traceback (most recent call last):
File "<pyshell#13>", line 1, in <module>
b = list(c)
TypeError: 'list' object is not callable
uj5u.com熱心網友回復:
明白了,感謝!
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/268954.html
下一篇:Python代碼請教!
