簡體   English   中英

如何使用 xlrd 讀取 excels 'Student Name' 列數據?

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

如何使用xlrd閱讀過人之處“學生姓名”一的數據?

請找到以下圖片以供參考:

在此處輸入圖片說明

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.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM