# for 循环(也叫遍历循环)
"""
for 临时变量 in 待处理数据集
循环满足条件时执行的代码
"""
name="zhangsanlisi"
for x in name:
print(x)
"""
输出结果:
z
h
a
n
g
s
a
n
l
i
s
i
"""
# for 循环(也叫遍历循环)
"""
for 临时变量 in 待处理数据集
循环满足条件时执行的代码
"""
name="zhangsanlisi"
for x in name:
print(x)
"""
输出结果:
z
h
a
n
g
s
a
n
l
i
s
i
"""