![](/img/trans.png)
[英]Python - Using csv and xlrd module to write multi-row excel file to one row csv file
[英]How to Write in csv or Excel file using CSV module or Pandas by combining two lists into one In Python?
您可以尝试使用itertools
zip_longest
然后to_csv
import itertools
pd.DataFrame(itertools.zip_longest(list1,list2)).to_csv('Your.csv',header=None, index=None)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.