我有一个包含以下值的列表:
print(list_Theme)
print(list_SubTheme)
print(list_Quote)
['Operating environment', 'Competitive advantage']
['Regional Demand', None]
["In China Cash flow from operating activities was $670 million, up 19%.ABB's regional and country order trends for the third quarter are illustrated on Slide 4.", 'Specifically, in the United States, our largest market, Electrification order growth was robust apart from large orders, whichhad a tough comparison base.']
我已经写了下面的脚本,但是有人能指出如何实现相同的脚本吗
import xlsxwriter
outWorkbook=xlsxwriter.Workbook("out.xlsx")
outSheet=outWorkbook.add_worksheet()
outSheet.write("A1","Theme")
outSheet.write("B1","Sub-Theme")
outSheet.write("C1","Quote")
#row=0
#col=0
#I am stuck here on how to proceed? Should I use write_row? or Is there a better way?
outWorkbook.close()
有很多方法可以写入Excel文件,但是当您使用xlsxwriter时;让我为你使用同样的方法
您可以尝试以下代码:
您可以尝试:
相关问题 更多 >
编程相关推荐