for循环列表操作方法
>>>a = [1,2,3,4]
>>>for i in a:
>>> print i,
1 2 3 4
for循环元组赋值
>>>x =[('hello','python'),('very','good')]
>>>for (a,b) in x:
>>> print (a,b)
('hello', 'python')
('very', 'good')
还有for n in range(10)这种写法
for i in range(0, 10):
。。。。。。。。