摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- import sys # reload(sys) # sys.setdefaultencoding('utf-8')# type = sys.getfilesystemencoding()import xlr 阅读全文
posted @ 2017-08-28 17:59 lindamo 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Python可以使用xlrd读excel,使用xlwt写excel,但是如果要把数据写入已存在的excel,需要另外一个库xlutils配合使用. 大概思路: 1、用xlrd.open_workbook打开已有的xsl文件注意添加参数formatting_info=True,得以保存之前数据的格式2 阅读全文
posted @ 2017-08-28 17:43 lindamo 阅读(2277) 评论(1) 推荐(0) 编辑