Python使用for循环需要事先设置迭代变量吗?#Python2022-05-31 12:49分类:Python 0 条评论 请先 登录 后评论 默认排序 时间排序 1 个回答|212 次阅读 2022-05-31 12:52 Coco老师 - 官方公众号:青少儿编程学习网 擅长:编程教育 • 网站:https://kidscodes.cn/for循环不需要事先设置迭代变量;fruits = ['apple','orange','banana']for i in fruits: print(i)执行结果:appleorangebanana 请先 登录 后评论