【问题标题】:how to identify text colors in a word document using python?如何使用python识别word文档中的文本颜色?
【发布时间】:2019-02-05 23:59:03
【问题描述】:

我正在尝试根据字体颜色从 Word 文档中提取一些文本? 我想知道使用 python 包有什么有效的方法吗?

谢谢

【问题讨论】:

    标签: python fonts colors ms-word


    【解决方案1】:

    您可以使用docx 库!如果您正在寻找示例,this 可能会有所帮助!

    【讨论】:

    • 谢谢。 Atucally 我看过这篇文章,但是在使用 document.xpath 时出现错误:AttributeError: 'Document' object has no attribute 'xpath'
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-03-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多