Python的for循环可以循环所有序列(一个list或者string), 如:
a = [‘abc’, ‘bcde’, ‘efghi’, ‘hello word’]
for i in a:
print (i)
print (len(i))
代码在Python3.0下调试通过

Python的for循环可以循环所有序列(一个list或者string), 如:
a = [‘abc’, ‘bcde’, ‘efghi’, ‘hello word’]
for i in a:
print (i)
print (len(i))
代码在Python3.0下调试通过