Now I can easily create a list out of a CSV file.
csvreader = csv.reader(open('test.tsv','r'), delimiter='\t') x = [] for row in csvreader: x.append(row)
However, I notice that csv.writer() has some strange problem on my Linux box. Sometimes it does not finish writing the list. I don't know why.
No comments:
Post a Comment