Search:
Help/Guide
About Trac
Preferences
Wiki
Timeline
Roadmap
Browse Source
View Tickets
Search
Context Navigation
←
Previous Change
Wiki History
Next Change
→
Changes between
Version 1
and
Version 2
of
Python
View differences
inline
side by side
Show
lines around each change
Show the changes in full context
Ignore:
Blank lines
Case changes
White space changes
Timestamp:
06/16/06 09:12:31 (
18 years
ago)
Author:
atzm
Comment:
--
Legend:
Unmodified
Added
Removed
Modified
Python
v1
v2
29
29
1 2 3
30
30
}}}
31
32
== 行列の行と列を入れ替える ==
33
{{{
34
#!python
35
$ cat hoge.txt
36
1 2 3 4
37
5 6 7 8
38
9 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
41
1 5 9
42
2 6 10
43
3 7 11
44
4 8 12
45
}}}