Here, we can see that quotechar='*' parameter instructs the writer object to use * as quote for all non-numeric values. The first row of the CSV file is assumed to contain the column names, which are used. Writer = csv.writer(file, quoting=csv.QUOTE_NONNUMERIC,ģ *Guido van Rossum* *Python Programming* You can read CSV file directly into a dictionary using DictReader() method.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |