08 2017 档案

摘要:1 # # /usr/bin/python 2 # #coding:utf-8 3 #http://cuiqingcai.com/968.html 4 5 import urllib 6 import urllib2 7 import cookielib 8 import xlrd,xlwt,os 9 import openpyxl 10 from xlutils.copy ... 阅读全文
posted @ 2017-08-29 16:26 lindamo 阅读(423) 评论(0) 推荐(0)
摘要:#!/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 阅读(191) 评论(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 阅读(2304) 评论(1) 推荐(0)