Created
December 10, 2013 12:27
-
-
Save NickMirnov/7889851 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 | |
writer = csv.writer(open("some.csv", "wb"), delimiter=':', quoting=csv.QUOTE_MINIMAL, \ | |
quotechar='`', lineterminator='|') | |
writer.writerows([ [1997, "Ford", "E350", "ac, abs, moon", "3000.00"], | |
[1999, "Chevy", "Venture `Extended Edition`", "", "4900.00"], | |
[1996, "Jeep", "Grand Cherokee", "air, moon roof, loaded MUST SELL!", "4799.00"] ]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment