Changes between Version 1 and Version 2 of Python


Ignore:
Timestamp:
06/16/06 09:12:31 (18 years ago)
Author:
atzm
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Python

    v1 v2  
    29291 2 3 
    3030}}} 
     31 
     32== 行列の行と列を入れ替える == 
     33{{{ 
     34#!python 
     35$ cat hoge.txt  
     361 2 3 4 
     375 6 7 8 
     389 10 11 12 
     39 
     40$ python -c 'import sys; print "\n".join([" ".join(i) for i in zip(*[i.split() for i in sys.stdin])])' < hoge.txt 
     411 5 9 
     422 6 10 
     433 7 11 
     444 8 12 
     45}}}