两种遍历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 ""
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 ""