#!/usr/bin/env python
# -*- coding:utf-8 -*-
from xlrd import open_workbook
from xlutils.copy import copy
rexcel = open_workbook(u"F:\\用户日志表.xls")
excel = copy(rexcel)
table = excel.get_sheet(0)
table.write(row, 3, “data”) #写入数据
excel.save(u"F:\\用户日志表.xls") #保存文件