for i in "hello world":
print i
#效果如下
>>>
==========RESTART: C:/Python27/for.py =======================
h
e
l
l
o
w
o
r
l
d
>>>
for i in "hello world":
print i
#效果如下
>>>
==========RESTART: C:/Python27/for.py =======================
h
e
l
l
o
w
o
r
l
d
>>>