简体   繁体   English

从python打印excel列表

[英]printing a list in excel from python

I want to print my output from for loop to an excel sheet.我想将 for 循环的输出打印到 Excel 工作表。 One tricky thing is that i want it to print according to the heading i have already given(i dont mind giving heading in python also).一件棘手的事情是我希望它根据我已经给出的标题打印(我也不介意在 python 中给出标题)。 So here are tha values i want to print:所以这里是我想打印的值:

[0,0,0,2]
[0,0,0,2]
[0,0,0,2]
[0,0,0,2]
[0,0,0,2]
[0,0,0,2]
[0,0,0,2]
[0,0,0,2]
[0,0,0,2]
[0,0,0,2]
[0,0,0,2]
[0,0,0,2]
[0,0,0,2]
[0,0,0,2]
[0,0,0,2]
[0,0,0,2]
[0,0,0,2]
[0,0,0,3]
[0,0,0,2]
[0,0,0,2]
[0,0,0,2]
[0,0,0,2]
[0,0,0,2]
[0,0,0,3]

each value represents [RD,RW,ND,NW] variables in each list.每个值代表每个列表中的 [RD,RW,ND,NW] 变量。 Is there any way i can print these values in excel with the given variables as heading?有什么办法可以用给定的变量作为标题在excel中打印这些值吗?

使用熊猫图书馆有很多例子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM