错误:
AttributeError Traceback (most recent call last) <ipython-input-6-9b77ac20aa23> in <module>() 1 # Print the `images` dimensions ----> 2 print(images.ndim) 3 4 # Print the number of `images`'s elements 5 print(images.size) AttributeError: 'list' object has no attribute 'ndim'
改正
#源代码 input=[1,2,3] #修改后 input=np.array(input)