我有一个简单的列表列表。 4列出每个
中有3个值with open('test2.csv', 'w',) as f2:
f = csv.writer(f2, delimiter= '\t')
header = ["SENSOR", "h1", "h2", "h3"]
f.writerow(header)
for idx, lists in final_list:
f.writerow(lists)
print "IDX:",idx, "LISTS:", lists
“for idx,final_list中的列表:”会出现错误,并显示:
ValueError: too many values to unpack