错误TypeError: 'NoneType' object is not iterable是什么意思?我在以下Python代码上得到它:def write_file(data, filename): # creates file and writes list to it with open(filename, 'wb') as outfile: writer = csv.writer(outfile) for row in data: # ABOVE ERROR IS THROWN HERE writer.writerow(row)
添加回答
举报
0/150
提交
取消