Read an xlsx file into Python
openpyxl.reader.excel.
ExcelReader
(
fn
,
read_only=False
,
keep_vba=False
,
data_only=False
,
keep_links=True
)
[source]
¶
Bases:
object
Read an Excel package and dispatch the contents to the relevant modules
openpyxl.reader.excel.
load_workbook
(
filename
,
read_only=False
,
keep_vba=False
,
data_only=False
,
keep_links=True
)
[source]
¶
Open the given filename and return the workbook
| 参数: |
|
|---|---|
| 返回类型: |
openpyxl.workbook.Workbook
|
注意
When using lazy load, all worksheets will be
openpyxl.worksheet.iter_worksheet.IterableWorksheet
and the returned workbook will be read-only.