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-01-24 11:16:51 发布