点击查看【bilibili】for循环语法: for 临时变量 in 序列: 重复执⾏的代码1 重复执⾏的代码2 ...... 代码学习: str1 = 'itheima'for i in str1: print(i) 运行结果如下: