Get content module from excel: xlrd

import xlrd #Get 


the
object of the table excel = xlrd.open_workbook('a.excel') #Get all the tables in all excel table_list = excel.sheets() table1 = tables[0] #Get the number of rows in the table nrows = table1.nrows #Get the content of each row value_list = table1.row_values ​​(number of rows: int)

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324535920&siteId=291194637