TypeError系列之:TypeError: 'tuple' object is not callable._NuerNuer

a.shape是一个turple数据类型,你在后面加“()”,相当于把a.shape看成了一个函数名,a.shape(),相当于调用a.shape函数,因此会报错

posted @ 2022-03-19 11:07  Saul_Yu  阅读(62)  评论(0编辑  收藏  举报