In Python kann tsv genauso behandelt werden wie csv.
data.tsv
aaaa bbb cc d ee fff gggg
sample.py
import csv
tsvFile = file("data.tsv")
tsv = csv.reader(tsvFile, delimiter = '\t')
for s in tsv:
print s
console
aaaa
bbb
cc
d
ee
fff
gggg
Recommended Posts