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
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did81917