![](/img/trans.png)
[英]How to read merged cell values of an excel file with openpyxl / python?
[英]How to read merged cell with xlrd in python?
我正在嘗試從工作表中讀取合並的單元格,但是不幸的是,沒有任何工作對我有用。 我處於一種情況下,我想閱讀行合並,列合並或可能兩者兼而有之 。 任何幫助將不勝感激。 PS。 我已經嘗試過sheets.merged_cells ,它返回空白數組。
謝謝。
文件: http : //xlrd.readthedocs.io/en/latest/api.html#xlrd.sheet.Sheet.merged_cells
請確保已閱讀第二個“注釋”-如果未在xlrd.open_workbook()
指定formatting_info=True
,則將獲得一個空列表(稱為“空白數組”)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.