【python】操作excel——xlrd xlwt xlutils
2016-12-14 11:35
337 查看
from xlutils.copy import copy import xlrd # import xlutils #打开已存在的excel rb=xlrd.open_workbook('D:\\1.xls',formatting_info=True, on_demand=True) rs=rb.sheet_by_index(0).cell(0,0).value #复制 wb=copy(rb) #插入or修改数据 wb.get_sheet(0).write(1,0,'7') #保存(保存的路径,默认为python项目的路径) wb.save('1.xls')
参考文档: http://xlutils.readthedocs.io/en/latest/copy.html
相关文章推荐
- python操作Excel读写(使用xlrd和xlrt)
- python操作Excel读写--使用xlrd
- python操作Excel读写--使用xlrd
- 用Python 模块xlrd 操作excel,并将数据导入MySQL
- python操作Excel读写--使用xlrd
- python操作Excel读写--使用xlrd
- python操作Excel读写(使用xlrd)
- python操作Excel读写--使用xlrd
- python操作Excel读写--使用xlrd
- python操作Excel读写--使用xlrd
- python操作Excel读写--使用xlrd
- python操作Excel读写(使用xlrd和xlrt)
- python操作Excel读写(使用xlrd和xlrt)
- Python 使用xlrd模块操作Excel写
- python操作Excel读写--使用xlrd
- python操作Excel读写--使用xlrd
- python操作Excel读写--使用xlrd
- python操作Excel读写--使用xlrd
- python操作Excel读写--使用xlrd
- python操作Excel读写--使用xlrd