可爱多的可可爱爱
2022-02-22 19:25
采纳率: 100%
浏览 16
已结题

python中使用xlsxwriter模块将程序生成的数据导入excel表格会覆盖问题怎么解决?

如:程序1:
import xlsxwriter
workbook = xlsxwriter.Workbook('Demo1.xlsx')
worksheet = workbook.add_worksheet()
worksheet.write('A1', 'Hello World!')
workbook.close()
程序2:
import xlsxwriter
workbook = xlsxwriter.Workbook('Demo1.xlsx')
worksheet = workbook.add_worksheet()
worksheet.write('A2', '你好,世界!')
workbook.close()
excel中只有A2部分的

1条回答 默认 最新

相关推荐 更多相似问题