Skip to content

Instantly share code, notes, and snippets.

@shopetan
Created October 5, 2015 17:40
Show Gist options
  • Save shopetan/92a4a93bf0b22f0a1039 to your computer and use it in GitHub Desktop.
Save shopetan/92a4a93bf0b22f0a1039 to your computer and use it in GitHub Desktop.
融通の効かないcsv君へ贈る
import csv
f1 = open("Q_DB_TEST.csv", "r")
f2 = open("write_test.csv","w")
reader = csv.reader(f1)
writer = csv.writer(f2, lineterminator='\n')
for row in reader:
writer.writerow(row)
print row
f1.close()
f2.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment