好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

python操作excel详解

前提:

python操作excel需要使用的模块有xlrd、xlwt、xlutils。对excel进行读、写、更新操作。操作excel时需要先导入这些模块,demo如下:

excel-读操作知识点:

          book = xlrd.open_workbook(  sheet =  sheet1 = book.sheet_by_name(   rows =  cols =  row_value = sheet.row_values(2  col_values = sheet.col_values(1  cell_value = sheet.cell(8, 1  cell_str = sheet.cell(8, 1).value 

查看更多关于python操作excel详解的详细内容...

  阅读:45次