python實現讀取excel表數據

# -*- coding: utf-8 -*- import xlrd xlsfile = r"F:123.xlsx"# 打開指定路徑中的xlsx文件 book = xlrd.open_workbook(xlsfile)#得到Excel文件的book對象,實例化對象 sheet0 = book.sheet_by_index(0) # 通過sheet索引獲得sheet對象 sheet_name =
相關文章
相關標籤/搜索