description csv quote_nonnumericand csv quote_non (no quotingsee python' documentation for full details defaults to quote_minimal skipinitialspace ignore whitespace after each delimiter default false doublequote how to handle quoting character inside field if trueit is doubled see online documentation for full detail and behavior escapechar string to escape the delimiter if quoting is set to csv quote_none disabled by default for files with more complicated or fixed multicharacter delimitersyou will not be able to use the csv module in those casesyou'll have to do the line splitting and other cleanup using string' split method or the regular expression method re split to write delimited files manuallyyou can use csv writer it accepts an openwritable file object and the same dialect and format options as csv readerwith open('mydata csv'' 'as fwriter csv writer(fdialect=my_dialectwriter writerow(('one''two''three')writer writerow((' '' '' ')writer writerow((' '' '' ')writer writerow((' '' '' ')json data json (short for javascript object notationhas become one of the standard formats for sending data by http request between web browsers and other applications it is much more flexible data format than tabular text form like csv here is an exampleobj ""{"name""wes""places_lived"["united states""spain""germany"]"pet"null"siblings"[{"name""scott""age" "pet""zuko"}{"name""katie""age" "pet""cisco"}""json is very nearly valid python code with the exception of its null value null and some other nuances (such as disallowing trailing commas at the end of liststhe basic types are objects (dicts)arrays (lists)stringsnumbersbooleansand nulls all of the keys in an object must be strings there are several python libraries for reading and writing json data 'll use json here as it is built into the python standard library to convert json string to python formuse json loadsin [ ]import json reading and writing data in text format www it-ebooks info