|

楼主 |
发表于 2020-5-15 13:59:09
|
显示全部楼层
可以看看这个
- def load_workbook(filename, read_only=False, keep_vba=KEEP_VBA,
- data_only=False, keep_links=True):
- """Open the given filename and return the workbook
- :param filename: the path to open or a file-like object
- :type filename: string or a file-like object open in binary mode c.f., :class:`zipfile.ZipFile`
- :param read_only: optimised for reading, content cannot be edited
- :type read_only: bool
- :param keep_vba: preseve vba content (this does NOT mean you can use it)
- :type keep_vba: bool
- :param data_only: controls whether cells with formulae have either the formula (default) or the value stored the last time Excel read the sheet
- :type data_only: bool
- :param keep_links: whether links to external workbooks should be preserved. The default is True
- :type keep_links: bool
- :rtype: :class:`openpyxl.workbook.Workbook`
- .. note::
- When using lazy load, all worksheets will be :class:`openpyxl.worksheet.iter_worksheet.IterableWorksheet`
- and the returned workbook will be read-only.
- """
复制代码 |
|