How to write a list to a csv file?

后端 未结 1 1512
走了就别回头了
走了就别回头了 2021-01-03 10:09

I have a list that has data as following:

[[a,b,1], [c,d,3], [a,c,2], [c,d,1]]  

How can I write this list of lists to a csv file?

1条回答
  •  被撕碎了的回忆
    2021-01-03 10:51

    csv

    csvwriter.writerows()

    0 讨论(0)
提交回复
热议问题