阅读背景:

将多个列表转换为csv文件,每个列表名称为标题

来源:互联网 

I'm using Python 3.6. I have three lists with about 11,000 elements that I am converting to a csv file, but because there is no writecolumn() function like there is a writerow(), my lists are displayed near infinitely rightward. Here is a sample code with sample lists of only three elements each. How do I get the elements from the lists 'number', 'session', and 'stage' under their own column and header? To clarify, I want all three 'number' elements under one column, and the same for 'session' and 'stage'.I'm using Python 3.6. I have three lists with a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: