Python报错TypeError: ‘User‘ object is not iterable
生活随笔
收集整理的這篇文章主要介紹了
Python报错TypeError: ‘User‘ object is not iterable
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Python報錯TypeError: ‘User‘ object is not iterable
原因
User對象是不可迭代的,我這里是因為User并不是list,所以是不可迭代的,所以不使用迭代即刻
解決方法
總結
以上是生活随笔為你收集整理的Python报错TypeError: ‘User‘ object is not iterable的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: TypeError: object.__
- 下一篇: 我自己对学习的理解