按行访问
a = [ [1,2,3], [4,5,6], [7,8,9] ]
for v in a:
print(v)
按列访问
print( list( zip(*a) ) )
转置
print( list( zip(*a) )[::-1] )
a = [ [1,2,3], [4,5,6], [7,8,9] ]
for v in a:
print(v)
print( list( zip(*a) ) )
print( list( zip(*a) )[::-1] )