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 前端解析二进制流_一年半前端
- 下一篇: 微型计算机中存储器分成哪几个等级?它们各