]>
code.delx.au - monosys/blob - bin/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 print("".join(str(cell
).ljust(width
+1) for cell
, width
in zip(row
, column_widths
)))