python之操作excel

python操作excel主要是第三方模塊xlrt,xlwt,xlutils,xlrt是讀excel,xlwt是寫excel,xlutils是修改excel。先安裝這三個模塊 一、讀excel import xlrd book=xlrd.open_workbook('stu.xls')#打開一個excel文件 sheet=book.sheet_by_index(0)#根據下標獲取工作表 sheet
相關文章
相關標籤/搜索