「Python」CSVの読み書きサンプルコード

pythonコード
import csv
for line in open(“cftdemo.csv"):
name,age,address = line.split(“,")
name = name.strip(' \t\r\n’);
age = age.strip(' \t\r\n’);
address = birthday.strip(' \t\r\n’);
print (name + '\t’ + age + '\t’ + address)

Python

Posted by arkgame