import xlrd
book=xlrd.open_workbook('sample.xlsx')
print book.nsheets
print book.sheet_names()
sheet=book.sheet_by_index(1)
sheet.col_values(col_num) #This line reads the column data. I guess you know how to load the sheet and all.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.