📌  相关文章
📜  TypeError:'NoneType' 对象不可迭代 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:19.307000             🧑  作者: Mango

代码示例2
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)