分享

成功解决TypeError int object is not iterable

 处女座的程序猿 2021-09-28

成功解决TypeError: 'int' object is not iterable

解决问题

TypeError: 'int' object is not iterable

解决思路

TypeError: 'int' object is not iterable

解决方法

查看要迭代的对象,不能为单个整型数,可以直接转为列表,将num改为[num]

哈哈,大功告成!

    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多