How to write a list to a csv file?

后端 未结 1 1513
走了就别回头了
走了就别回头了 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)
提交回复
热议问题