CSV File Reading and Writing — Python 2.7.2 …
https://python.readthedocs.io/en/v2.7.2/library/csv.html
import csv, sys filename = 'some.csv' with open(filename, 'rb') as f: reader = csv.reader(f) try: for row in reader: print row except csv.Error, e: sys.exit('file %s, line %d: %s' % (filename, reader.line_num, e)) And while the module doesn’t directly support parsing strings, it can …
DA: 22 PA: 29 MOZ Rank: 95