标签: python indexing
此代码:
f1_in = open("1.csv","r") f1_dict = {} for line in f1_in: l = line.split() f1_dict[l[0].strip()] = l[1].strip() f1_in.close()
收到错误:
list index out of range at f1_dict[l[0].strip()] = l[1].strip()