0
我使用python 2.7並使用python pptx。python pptx獲取表格寬度
我在我的幻燈片中添加了一張桌子,並且需要獲取桌子的整體寬度。
我發現here的_column屬性寬度,並嘗試與該代碼
for col in table._column:
yield col.width
使用它,例如並得到以下錯誤:
AttributeError的:「表」對象有沒有屬性' _column'
我需要得到表寬度(或列寬度和總和)。想法?
謝謝!
使用列,而不是_column – Sergius
AttributeError的:「表」對象有沒有屬性「_columns」 – thebeancounter
媽呀,你看,剛剛列,無下劃線 – Sergius