「Python入門」CSVデータを取り込むサンプル
Pythonコード
#coding:utf-8
import csv
file = “changfademo.csv"
f = open(file,"r")
reader = csv.reader(f)
for row in reader:
print row[0]
f.close()
Coding Changes the World
Pythonコード
#coding:utf-8
import csv
file = “changfademo.csv"
f = open(file,"r")
reader = csv.reader(f)
for row in reader:
print row[0]
f.close()