2024FALLcse160Lectures/bigos/lecture20241119/csvfiles/csvline2.py

12 lines
260 B
Python

# Read a csv file from the current directory
# import the csv function library
import csv
filename = "dogs.csv"
with open(filename,'r') as csvfile:
csvData = csv.reader(csvfile,delimiter = ',',quotechar = '"')
for row in csvData:
print(row)