关于Numpy array类型 TypeError: 'tuple' object is not callable 程序员文章站 2022-05-29 08:04:24 ... ** 若编码时会出现以下错误 ** from PIL import Image a= Image.open('1.png') a_num = np.array(a) a_num.shape() TypeError Traceback (most recent call last) <ipython-input-19-5a33b2b479d7> in <module> ----> 1 a_num.shape() TypeError: 'tuple' object is not callable 将a_num.shape() -----> a_num.shape[:] 相关标签: 关于Numpy array类型 TypeError: 'tuple' 上一篇: Flask 教程 第十五章:优化应用结构 下一篇: TypeError: ‘tuple‘ object is not callable 推荐阅读 Django关于TypeError: 'tuple' object is not callable解决方式 关于Numpy array类型 TypeError: 'tuple' object is not callable