简体   繁体   中英

How to read the excels 'Student Name' column data using xlrd?

How to read the excels 'Student Name' column data using xlrd ?

Please find the below image for the reference :

在此处输入图片说明

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM