两种遍历list

li=[[1,2,3,4,5],[1,2,3,4,5],[1,2,3,4,5],[1,2,3,4,5],[1,2,3,4,5]]
s=0
for i in range(0,5):
for j in range(0,5):
print li[i][j],
print ""
print "+++++++++++++++++++++++++++++++++"
for k in li:
for w in k:
print w,
print ""

posted @ 2015-11-02 15:08  big_brother  阅读(135)  评论(0编辑  收藏  举报