挨个访问,直到没有出现StopIteration错误。
while true:
try:
each=next(it)
except StopIteration:
break
print(each)
for each in string: