因为xlrd只能读取xls,如遇到xlsx文件,需要使用openpyxl库读取,代码如下:. from openpyxl import load_workbook def read_xlsx(file): # 加载 ...
確定! 回上一頁