import xlrd
from xlutils.copy import copy
def write_value(self, row, col, value, filename):
excel = xlrd.open_workbook(filename)
ectype = copy(excel)
sheet_data = ectype.get_sheet(0)
sheet_data.write(row, col, value)
ectype.save(filename)
使用python在Excel表中写入数据
最新推荐文章于 2024-07-24 10:15:00 发布