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-12-11 08:11:21 发布
3164

被折叠的 条评论
为什么被折叠?



