while循环
a = 'milk'
i = 0
while i < len(a):
print(a[i])
i = i+1
for循环
a = 'milk'
for i in range(len(a)):
print(a[i])
while循环
a = 'milk'
i = 0
while i < len(a):
print(a[i])
i = i+1
for循环
a = 'milk'
for i in range(len(a)):
print(a[i])
转载于:https://my.oschina.net/u/3786144/blog/1625516