「Python入門」re.split()でcsvを取り込む方法
pythonコード:
#coding:utf-8
import re
f = open('sample.csv’,’r’)
for rc in f:
item = re.split(',’,rc)
print item[0]
f.close()
Coding Changes the World
pythonコード:
#coding:utf-8
import re
f = open('sample.csv’,’r’)
for rc in f:
item = re.split(',’,rc)
print item[0]
f.close()