发布于 2017-05-25 15:08:55
您可以使用开吡咯包来完成这个任务。下面是一个简单的例子:
import openpyxl
# Grab first worksheet of existing excel file
wb = openpyxl.load_workbook('sample.xlsx')
ws = wb.worksheets[0]
# Write some cell values
ws['A1'] = 18
ws['A2'] = 39
# Save changes to excel file
wb.save("sample.xlsx")https://stackoverflow.com/questions/44181404
复制相似问题