for 循环迭代
# -*- coding: utf-8 -*-
words = ['this','is','an','apple']
for word in words :
print word
print
product_list = [
('height',100),
('width',200),
('length',300) ]
for val,data in product_list:
print val,data
运行结果:
this
is
an
apple
height 100
width 200
length 300