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