""" 演示for循环的基础语法 """ name = "itheima" for x in name: # 将name的内容,挨个取出赋予x临时变量 # 就可以在循环体内对x进行处理 print(x)