python运行报错:TypeError: argument of type 'int' is not iterable

python运行报错:TypeError: argument of type 'int' is not iterable

 

python运行报错:

 

 中文解释:TypeError: int类型的参数不是可迭代的

 

解决办法:

int类型不能直接进行循环,改变数据类型即可,把int类型改变为str类型 (例):

 

 

posted @   北京测试--技术小白  阅读(9183)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
点击右上角即可分享
微信分享提示