Biegral 2021/1/6 6:31:58 8258
成功解决TypeError: 'int' object is not iterable
目录
解决问题
解决思路
解决方法
TypeError: 'int' object is not iterable
查看要迭代的对象,不能为单个整型数,可以直接转为列表,
将num改为[num]
哈哈,大功告成!