python报错:'list' object has no attribute 'shape'

numpy.array可使用 shape。list不能使用shape。
可以使用np.array(list A)进行转换。
(array转list:array B B.tolist()即可)

猜你喜欢

转载自blog.csdn.net/weixin_38648232/article/details/85084020