如何使用Python解析和修改.odg文件?

2024-05-15 08:16:53 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个现有的odg文件,我需要通过Python修改它。你知道吗

我看过ezodf库,但它没有很好的文档记录odg文件:

https://github.com/T0ha/ezodf

我没有看到任何相关的例子。你知道吗

import ezodf
draw = ezodf.opendoc('diagram.odg')
# can't get any further than here

draw将打印 <ezodf.document.PackagedDocument object at 0x7f50f295a550>,但我需要解析并修改它。你知道吗


Tags: 文件文档httpsimportgithubcom记录can