2015-09-05 74 views

回答

0

就像在評論中說,你可以用zip()str.join()做到這一點 -

>>> lst = [[11, 12, 13],[21, 22, 23],[31, 32, 33]] 
>>> print('\n'.join(' '.join(map(str, s)) for s in zip(*lst))) 
11 21 31 
12 22 32 
13 23 33