Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,如何导入字段 A1 的数据?当我使用 etree.parse() 时出现错误,因为我没有 xml 文件。
这是一个 zip 文件:
import zipfile from lxml import etree z = zipfile.ZipFile('mydocument.ods') data = z.read('content.xml') data = etree.XML(data) etree.dump(data)