]>
code.delx.au - monosys/blob - csv2txt
6 rows
= list(csv
.reader(sys
.stdin
))
7 column_widths
= list(max((len(str(cell
))) for cell
in column
) for column
in zip(*rows
))
9 for width
, cell
in zip(column_widths
, row
):
10 print str(cell
).ljust(width
),