假設資料是
"a","b","c","d"
1 , 0 , 1 , a
1 , 0 , 1 , b
1 , 1 , 1 , f
1 , 0 , 1 , d
程式碼寫到下面卡住了
import csv
f = open('test.csv', 'r')
count=0
for row in csv.DictReader(f, ["a","b","c","d"]):
print row[d]
寫到這裡不知道怎"d"這整行資料把a~t標記成0,
把t~Z標記成1後,放到第五行(加一行"e")
因為資料太大不知到怎麼用python寫
謝謝