f=open("data.csv","r",encoding='utf-8')
x=[]
for line in f:
x.append(line)
f.close()
pop=[]
year=[]
for x1 in x:
h=0
y=x1.split(",")
if "大阪" in x1:h=h+1
if "c1," in x1:h=h+1
if h==2:pop.append(y[4])
if h==2:year.append(y[3])
print(pop)
print(year)
最終更新:2018年01月31日 08:21