如下所示:
#encoding=utf-8
import xlrd
from xlwt import *
#------------------读数据---------------------------------
fileName="C:\\Users\\st\\Desktop\\test\\20170221131701.xlsx"
bk=xlrd.open_workbook(fileName)
shxrange=range(bk.nsheets)
try:
sh=bk.sheet_by_name("Sheet1")
except:
print "代码出错"
nrows=sh.n
2022-03-04 20:33:10
31KB
c
ce
ex
1