Created
April 7, 2016 14:02
-
-
Save 101001417/3b41eacb8445a2c219058cf9c63c7c3f to your computer and use it in GitHub Desktop.
tsv2csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
with open('D://output.csv', 'w') as out: | |
reader = csv.reader(open('D://AllNet5.net', 'r'), delimiter="\t") | |
writer = csv.writer(out, delimiter=',') # 1 | |
total = 0 | |
for row in reader: | |
writer.writerow(row) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment