In Python, tsv can be treated in the same way as 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