如何在for循环中所有的返回值使用xlsxwriter库在Excel列中插入?因为现在这里是我的输出在我的脚本循环:插入一列多个值擅长
Value : 4.0
Value : 17.2
Value : 7.0
从Excel结果列就是 - >>>“Vaue:7.0”
这里是我的代码:
for line, file in enumerate(PM2Line):
if POA in file:
count = count + 1
#print file
worksheet.write('B2', file)#---here is my issue..
我需要插入他们都在一列,但现在它仅仅只更新这是最后的回报值。
请参阅文件“bench_excel_writers PY。” – user6161
您需要在循环数据时更改行号。目前,您正在将所有内容写入B2单元格。 – jmcnamara