Created
October 5, 2015 17:40
-
-
Save shopetan/92a4a93bf0b22f0a1039 to your computer and use it in GitHub Desktop.
融通の効かないcsv君へ贈る
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 | |
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