Skip to content

Instantly share code, notes, and snippets.

@101001417
Created April 7, 2016 14:02
Show Gist options
  • Save 101001417/3b41eacb8445a2c219058cf9c63c7c3f to your computer and use it in GitHub Desktop.
Save 101001417/3b41eacb8445a2c219058cf9c63c7c3f to your computer and use it in GitHub Desktop.
tsv2csv
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