# csv モジュールをインポート
import csv
# sample.csv を読み込む
with open("警告一覧.csv") as file:
reader = csv.reader(file)
for row in reader:
for column in row:
print(column)
CSVインポート(カラムごと)
Python
Python# csv モジュールをインポート
import csv
# sample.csv を読み込む
with open("警告一覧.csv") as file:
reader = csv.reader(file)
for row in reader:
for column in row:
print(column)
Comments