天天看點

Python錯誤:'tuple' object is not callable

什麼意思?

  簡單的說,就是一個對象明明沒有這個函數,卻作為函數調用。比如說:

  data_array = []
  print(data_array.shape())
       

這個時候,大家就會發現,Python真不友善,有什麼函數都不知道……