import xlrd data = xlrd.open_workbook(EXCEL_PATH) table = data.sheet_by_index(0) lines = table.nrows cols = table.ncols print u'The total line is %s, cols is %s'%(lines, cols) # 读取某个单元格 table.cell(x, y).value ''' x : 行 y : 列 行/列都是从0开始 ''' In [1]: imp
5列 根据需要可添加 或 删除 strOneTemp strTwoTemp strThreeTemp strFourTemp strFiveTemp //合并单元格 this.mergeCellsTable = function(){ var strOneTemp = null; var indexOne = 1 var objOne={}; var strTwoTemp = null; var indexTwo = 1 var objTwo={}; var strThreeTemp