AttributeError: ‘list‘ object has no attribute ‘ndim‘
生活随笔
收集整理的这篇文章主要介绍了
AttributeError: ‘list‘ object has no attribute ‘ndim‘
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
错误:
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 elements5 print(images.size)AttributeError: 'list' object has no attribute 'ndim'改正
#源代码 input=[1,2,3]#修改后 input=np.array(input)总结
以上是生活随笔为你收集整理的AttributeError: ‘list‘ object has no attribute ‘ndim‘的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: react 前端解析二进制流_一年半前端
- 下一篇: 微型计算机中存储器分成哪几个等级?它们各