python之表格數據讀取

python  操作excel主要用到xlrd,xlwt這兩個庫,xlrd,是讀取excel表,xlwt是寫入表格 1.打開表格 table = xlrd.open("path_to_your_excel", 'rb') 一般時候需要進行判斷,防止表格打開錯誤 try:     table = xlrd.open("path_to_your_excel", 'rb') except Excepti
相關文章
相關標籤/搜索