Created
July 18, 2018 02:44
-
-
Save allenyang79/f4a512b746093b2536dd04869cd8e3cf to your computer and use it in GitHub Desktop.
csv read
This file contains hidden or 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 | |
with open(file) as fp: | |
reader = csv.DictReader(fp, delimiter=',', lineterminator="\r\n",quotechar='"') | |
for row in reader: | |
src_data.append(row) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment