close
import csv
import os
import sys
path = './csv_dir/'
os.chdir(path)
if os.getcwd() != path:
print('ERROR: the file path incorrect.')
sys.exit()
file = open(path + 'data.csv', 'r')
csvData = csv.reader(file)
for row in csvData:
print(row)
file.close()
文章標籤
全站熱搜
留言列表