{"id":1060294,"date":"2024-12-31T15:32:42","date_gmt":"2024-12-31T07:32:42","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1060294.html"},"modified":"2024-12-31T15:32:44","modified_gmt":"2024-12-31T07:32:44","slug":"python%e5%a6%82%e4%bd%95%e8%af%bb%e5%8f%96word%e4%b8%ad%e7%9a%84%e8%a1%a8%e6%a0%bc%e6%95%b0%e6%8d%ae","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1060294.html","title":{"rendered":"python\u5982\u4f55\u8bfb\u53d6word\u4e2d\u7684\u8868\u683c\u6570\u636e"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/56dca2b2-414d-409e-b886-9f30d773e8b7.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u8bfb\u53d6word\u4e2d\u7684\u8868\u683c\u6570\u636e\" \/><\/p>\n<p><p> <strong>Python\u8bfb\u53d6Word\u4e2d\u7684\u8868\u683c\u6570\u636e\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528<code>python-docx<\/code>\u5e93\u3001<code>\u8bfb\u53d6Word\u6587\u6863<\/code>\u3001<code>\u63d0\u53d6\u8868\u683c\u6570\u636e<\/code>\uff0c\u5176\u4e2d\u4f7f\u7528<code>python-docx<\/code>\u5e93\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u3002<\/strong> Python-docx \u662f\u4e00\u4e2a\u7528\u4e8e\u521b\u5efa\u548c\u66f4\u65b0 Microsoft Word (.docx) \u6587\u4ef6\u7684 Python \u5e93\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8be5\u5e93\u6765\u8bfb\u53d6 Word \u6587\u6863\u4e2d\u7684\u8868\u683c\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5python-docx\u5e93<\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528 python-docx \u5e93\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u5148\u8fdb\u884c\u5b89\u88c5\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u901a\u8fc7 pip \u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install python-docx<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u8be5\u5e93\u6765\u8bfb\u53d6 Word \u6587\u6863\u4e2d\u7684\u8868\u683c\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u5bfc\u5165\u5e93\u5e76\u6253\u5f00Word\u6587\u6863<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5bfc\u5165 python-docx \u5e93\u5e76\u6253\u5f00\u6211\u4eec\u9700\u8981\u8bfb\u53d6\u7684 Word \u6587\u6863\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\u6765\u5c55\u793a\u5982\u4f55\u5bfc\u5165\u5e93\u5e76\u6253\u5f00\u6587\u6863\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from docx import Document<\/p>\n<h2><strong>\u6253\u5f00Word\u6587\u6863<\/strong><\/h2>\n<p>doc = Document(&#39;example.docx&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>Document<\/code> \u7c7b\u7528\u4e8e\u6253\u5f00\u6307\u5b9a\u8def\u5f84\u7684 Word \u6587\u6863\u3002\u8bf7\u786e\u4fdd\u5c06 <code>&#39;example.docx&#39;<\/code> \u66ff\u6362\u4e3a\u4f60\u5b9e\u9645\u7684 Word \u6587\u4ef6\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u83b7\u53d6\u5e76\u904d\u5386\u8868\u683c<\/p>\n<\/p>\n<p><p>Word \u6587\u6863\u4e2d\u7684\u8868\u683c\u5b58\u50a8\u5728\u6587\u6863\u5bf9\u8c61\u7684 <code>tables<\/code> \u5c5e\u6027\u4e2d\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u904d\u5386\u8be5\u5c5e\u6027\u6765\u83b7\u53d6\u6240\u6709\u8868\u683c\uff0c\u5e76\u8fdb\u4e00\u6b65\u63d0\u53d6\u6bcf\u4e2a\u8868\u683c\u4e2d\u7684\u6570\u636e\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\u6765\u5c55\u793a\u5982\u4f55\u83b7\u53d6\u5e76\u904d\u5386\u8868\u683c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u904d\u5386\u6587\u6863\u4e2d\u7684\u6240\u6709\u8868\u683c<\/p>\n<p>for table in doc.tables:<\/p>\n<p>    # \u904d\u5386\u8868\u683c\u4e2d\u7684\u6240\u6709\u884c<\/p>\n<p>    for row in table.rows:<\/p>\n<p>        # \u904d\u5386\u884c\u4e2d\u7684\u6240\u6709\u5355\u5143\u683c<\/p>\n<p>        for cell in row.cells:<\/p>\n<p>            print(cell.text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u904d\u5386\u6587\u6863\u4e2d\u7684\u6240\u6709\u8868\u683c\uff0c\u7136\u540e\u904d\u5386\u6bcf\u4e2a\u8868\u683c\u4e2d\u7684\u6240\u6709\u884c\uff0c\u6700\u540e\u904d\u5386\u6bcf\u884c\u4e2d\u7684\u6240\u6709\u5355\u5143\u683c\uff0c\u5e76\u6253\u5370\u6bcf\u4e2a\u5355\u5143\u683c\u7684\u6587\u672c\u5185\u5bb9\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u63d0\u53d6\u7279\u5b9a\u8868\u683c\u6570\u636e<\/p>\n<\/p>\n<p><p>\u5728\u4e00\u4e9b\u5e94\u7528\u573a\u666f\u4e2d\uff0c\u6211\u4eec\u53ef\u80fd\u53ea\u9700\u8981\u63d0\u53d6\u7279\u5b9a\u8868\u683c\u4e2d\u7684\u6570\u636e\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8868\u683c\u7684\u7d22\u5f15\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\u6765\u5c55\u793a\u5982\u4f55\u63d0\u53d6\u7279\u5b9a\u8868\u683c\u4e2d\u7684\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u83b7\u53d6\u7279\u5b9a\u8868\u683c\uff08\u4f8b\u5982\u7b2c\u4e00\u4e2a\u8868\u683c\uff09<\/p>\n<p>table = doc.tables[0]<\/p>\n<h2><strong>\u904d\u5386\u8868\u683c\u4e2d\u7684\u6240\u6709\u884c<\/strong><\/h2>\n<p>for row in table.rows:<\/p>\n<p>    # \u904d\u5386\u884c\u4e2d\u7684\u6240\u6709\u5355\u5143\u683c<\/p>\n<p>    for cell in row.cells:<\/p>\n<p>        print(cell.text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7\u7d22\u5f15 <code>doc.tables[0]<\/code> \u83b7\u53d6\u7b2c\u4e00\u4e2a\u8868\u683c\uff0c\u5e76\u904d\u5386\u8be5\u8868\u683c\u4e2d\u7684\u6240\u6709\u884c\u548c\u5355\u5143\u683c\uff0c\u6253\u5370\u6bcf\u4e2a\u5355\u5143\u683c\u7684\u6587\u672c\u5185\u5bb9\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u5c06\u8868\u683c\u6570\u636e\u5b58\u50a8\u5230\u6570\u636e\u7ed3\u6784\u4e2d<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u901a\u5e38\u9700\u8981\u5c06\u63d0\u53d6\u7684\u8868\u683c\u6570\u636e\u5b58\u50a8\u5230\u67d0\u79cd\u6570\u636e\u7ed3\u6784\u4e2d\uff0c\u4ee5\u4fbf\u540e\u7eed\u5904\u7406\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u8868\u683c\u6570\u636e\u5b58\u50a8\u5230\u4e00\u4e2a\u5d4c\u5957\u5217\u8868\u4e2d\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\u6765\u5c55\u793a\u5982\u4f55\u5c06\u8868\u683c\u6570\u636e\u5b58\u50a8\u5230\u5d4c\u5957\u5217\u8868\u4e2d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b58\u50a8\u8868\u683c\u6570\u636e\u7684\u5d4c\u5957\u5217\u8868<\/p>\n<p>table_data = []<\/p>\n<h2><strong>\u83b7\u53d6\u7279\u5b9a\u8868\u683c\uff08\u4f8b\u5982\u7b2c\u4e00\u4e2a\u8868\u683c\uff09<\/strong><\/h2>\n<p>table = doc.tables[0]<\/p>\n<h2><strong>\u904d\u5386\u8868\u683c\u4e2d\u7684\u6240\u6709\u884c<\/strong><\/h2>\n<p>for row in table.rows:<\/p>\n<p>    row_data = []<\/p>\n<p>    # \u904d\u5386\u884c\u4e2d\u7684\u6240\u6709\u5355\u5143\u683c<\/p>\n<p>    for cell in row.cells:<\/p>\n<p>        row_data.append(cell.text)<\/p>\n<p>    table_data.append(row_data)<\/p>\n<h2><strong>\u6253\u5370\u8868\u683c\u6570\u636e<\/strong><\/h2>\n<p>for row_data in table_data:<\/p>\n<p>    print(row_data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u7a7a\u7684\u5d4c\u5957\u5217\u8868 <code>table_data<\/code> \u6765\u5b58\u50a8\u8868\u683c\u6570\u636e\u3002\u7136\u540e\uff0c\u6211\u4eec\u904d\u5386\u8868\u683c\u4e2d\u7684\u6240\u6709\u884c\uff0c\u5e76\u5c06\u6bcf\u884c\u4e2d\u7684\u5355\u5143\u683c\u6570\u636e\u8ffd\u52a0\u5230 <code>row_data<\/code> \u5217\u8868\u4e2d\uff0c\u6700\u540e\u5c06 <code>row_data<\/code> \u5217\u8868\u8ffd\u52a0\u5230 <code>table_data<\/code> \u4e2d\u3002\u8fd9\u6837\uff0c\u6211\u4eec\u5c31\u5c06\u6574\u4e2a\u8868\u683c\u7684\u6570\u636e\u5b58\u50a8\u5230\u4e86\u4e00\u4e2a\u5d4c\u5957\u5217\u8868\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u5904\u7406\u590d\u6742\u8868\u683c<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u590d\u6742\u7684\u8868\u683c\uff0c\u4f8b\u5982\u5408\u5e76\u5355\u5143\u683c\u3001\u5d4c\u5957\u8868\u683c\u7b49\u3002\u5728\u5904\u7406\u8fd9\u4e9b\u590d\u6742\u8868\u683c\u65f6\uff0c\u6211\u4eec\u9700\u8981\u6839\u636e\u5177\u4f53\u60c5\u51b5\u8fdb\u884c\u76f8\u5e94\u7684\u5904\u7406\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5904\u7406\u590d\u6742\u8868\u683c\u7684\u5efa\u8bae\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u5408\u5e76\u5355\u5143\u683c<\/strong>\uff1a\u5982\u679c\u8868\u683c\u4e2d\u5b58\u5728\u5408\u5e76\u5355\u5143\u683c\uff0c\u6211\u4eec\u9700\u8981\u68c0\u67e5\u6bcf\u4e2a\u5355\u5143\u683c\u7684 <code>grid_span<\/code> \u548c <code>row_span<\/code> \u5c5e\u6027\uff0c\u4ee5\u786e\u5b9a\u5355\u5143\u683c\u7684\u5408\u5e76\u60c5\u51b5\uff0c\u5e76\u5728\u63d0\u53d6\u6570\u636e\u65f6\u8fdb\u884c\u76f8\u5e94\u5904\u7406\u3002<\/li>\n<li><strong>\u5d4c\u5957\u8868\u683c<\/strong>\uff1a\u5982\u679c\u8868\u683c\u4e2d\u5d4c\u5957\u4e86\u5176\u4ed6\u8868\u683c\uff0c\u6211\u4eec\u9700\u8981\u9012\u5f52\u904d\u5386\u8868\u683c\u7ed3\u6784\uff0c\u4ee5\u63d0\u53d6\u5d4c\u5957\u8868\u683c\u4e2d\u7684\u6570\u636e\u3002<\/li>\n<\/ol>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\u6765\u5c55\u793a\u5982\u4f55\u5904\u7406\u5408\u5e76\u5355\u5143\u683c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u904d\u5386\u8868\u683c\u4e2d\u7684\u6240\u6709\u884c<\/p>\n<p>for row in table.rows:<\/p>\n<p>    row_data = []<\/p>\n<p>    # \u904d\u5386\u884c\u4e2d\u7684\u6240\u6709\u5355\u5143\u683c<\/p>\n<p>    for cell in row.cells:<\/p>\n<p>        cell_text = cell.text<\/p>\n<p>        # \u5904\u7406\u5408\u5e76\u5355\u5143\u683c<\/p>\n<p>        if cell._element.get(&#39;vMerge&#39;) is not None and cell._element.get(&#39;vMerge&#39;) != &#39;restart&#39;:<\/p>\n<p>            cell_text = previous_cell_text<\/p>\n<p>        else:<\/p>\n<p>            previous_cell_text = cell_text<\/p>\n<p>        row_data.append(cell_text)<\/p>\n<p>    table_data.append(row_data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u68c0\u67e5\u6bcf\u4e2a\u5355\u5143\u683c\u7684 <code>vMerge<\/code> \u5c5e\u6027\uff0c\u5982\u679c\u8be5\u5c5e\u6027\u5b58\u5728\u4e14\u4e0d\u7b49\u4e8e <code>restart<\/code>\uff0c\u5219\u8868\u793a\u5f53\u524d\u5355\u5143\u683c\u662f\u5408\u5e76\u5355\u5143\u683c\u7684\u4e00\u90e8\u5206\uff0c\u6211\u4eec\u4f7f\u7528\u4e0a\u4e00\u4e2a\u5355\u5143\u683c\u7684\u6587\u672c\u5185\u5bb9\u586b\u5145\u5f53\u524d\u5355\u5143\u683c\u3002\u5426\u5219\uff0c\u6211\u4eec\u5c06\u5f53\u524d\u5355\u5143\u683c\u7684\u6587\u672c\u5185\u5bb9\u5b58\u50a8\u4e3a <code>previous_cell_text<\/code>\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4f7f\u7528 python-docx \u5e93\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u8bfb\u53d6 Word \u6587\u6863\u4e2d\u7684\u8868\u683c\u6570\u636e\u3002\u6211\u4eec\u53ef\u4ee5\u904d\u5386\u6587\u6863\u4e2d\u7684\u6240\u6709\u8868\u683c\uff0c\u63d0\u53d6\u6bcf\u4e2a\u8868\u683c\u4e2d\u7684\u6570\u636e\uff0c\u5e76\u5c06\u6570\u636e\u5b58\u50a8\u5230\u9002\u5f53\u7684\u6570\u636e\u7ed3\u6784\u4e2d\u3002\u5bf9\u4e8e\u590d\u6742\u8868\u683c\uff0c\u6211\u4eec\u9700\u8981\u6839\u636e\u5177\u4f53\u60c5\u51b5\u8fdb\u884c\u76f8\u5e94\u7684\u5904\u7406\u3002\u5e0c\u671b\u672c\u6587\u80fd\u591f\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u548c\u4f7f\u7528 python-docx \u5e93\u6765\u8bfb\u53d6 Word \u6587\u6863\u4e2d\u7684\u8868\u683c\u6570\u636e\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8bfb\u53d6Word\u6587\u6863\u4e2d\u7684\u8868\u683c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>python-docx<\/code>\u5e93\u6765\u8bfb\u53d6Word\u6587\u6863\u4e2d\u7684\u8868\u683c\u3002\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5\u8fd9\u4e2a\u5e93\uff0c\u8fd0\u884c<code>pip install python-docx<\/code>\u3002\u8bfb\u53d6\u8868\u683c\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7<code>Document<\/code>\u5bf9\u8c61\u8bbf\u95ee\u8868\u683c\uff0c\u7136\u540e\u904d\u5386\u884c\u548c\u5355\u5143\u683c\u4ee5\u63d0\u53d6\u6570\u636e\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a  <\/p>\n<ol>\n<li>\u5bfc\u5165<code>Document<\/code>\u7c7b\u5e76\u52a0\u8f7dWord\u6587\u4ef6\u3002  <\/li>\n<li>\u4f7f\u7528<code>tables<\/code>\u5c5e\u6027\u83b7\u53d6\u6587\u6863\u4e2d\u7684\u6240\u6709\u8868\u683c\u3002  <\/li>\n<li>\u904d\u5386\u6bcf\u4e2a\u8868\u683c\u7684\u884c\u548c\u5355\u5143\u683c\uff0c\u63d0\u53d6\u6240\u9700\u6570\u636e\u3002<\/li>\n<\/ol>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u5904\u7406\u590d\u6742\u7684Word\u8868\u683c\u7ed3\u6784\uff1f<\/strong><br \/><code>python-docx<\/code>\u5e93\u80fd\u591f\u5904\u7406\u5927\u591a\u6570\u8868\u683c\u7ed3\u6784\uff0c\u5305\u62ec\u5408\u5e76\u5355\u5143\u683c\u548c\u5d4c\u5957\u8868\u683c\u3002\u7136\u800c\uff0c\u5bf9\u4e8e\u975e\u5e38\u590d\u6742\u7684\u8868\u683c\uff0c\u53ef\u80fd\u9700\u8981\u989d\u5916\u7684\u4ee3\u7801\u6765\u5904\u7406\u4e0d\u540c\u7684\u60c5\u51b5\uff0c\u6bd4\u5982\u5408\u5e76\u5355\u5143\u683c\u7684\u5185\u5bb9\u63d0\u53d6\u3002\u5bf9\u4e8e\u5e38\u89c1\u7684\u8868\u683c\u64cd\u4f5c\uff0c\u5e93\u63d0\u4f9b\u7684\u529f\u80fd\u5df2\u7ecf\u8db3\u591f\u3002<\/p>\n<p><strong>\u8bfb\u53d6\u8868\u683c\u6570\u636e\u540e\uff0c\u5982\u4f55\u5c06\u5176\u4fdd\u5b58\u4e3a\u5176\u4ed6\u683c\u5f0f\uff1f<\/strong><br \/>\u5728\u63d0\u53d6\u4e86Word\u8868\u683c\u6570\u636e\u540e\uff0c\u53ef\u4ee5\u9009\u62e9\u5c06\u5176\u4fdd\u5b58\u4e3aCSV\u3001Excel\u6216JSON\u683c\u5f0f\u3002\u4f7f\u7528<code>pandas<\/code>\u5e93\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u5c06\u6570\u636e\u653e\u5165<code>DataFrame<\/code>\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>to_csv()<\/code>\u3001<code>to_excel()<\/code>\u7b49\u65b9\u6cd5\u5c06\u5176\u5bfc\u51fa\u4e3a\u6240\u9700\u683c\u5f0f\u3002\u786e\u4fdd\u5728\u5f00\u59cb\u4e4b\u524d\u5b89\u88c5<code>pandas<\/code>\u5e93\uff0c\u8fd0\u884c<code>pip install pandas<\/code>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u8bfb\u53d6Word\u4e2d\u7684\u8868\u683c\u6570\u636e\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528python-docx\u5e93\u3001\u8bfb\u53d6Word\u6587\u6863\u3001\u63d0\u53d6\u8868\u683c\u6570\u636e\uff0c\u5176\u4e2d [&hellip;]","protected":false},"author":3,"featured_media":1060311,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1060294"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1060294"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1060294\/revisions"}],"predecessor-version":[{"id":1060312,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1060294\/revisions\/1060312"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1060311"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1060294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1060294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1060294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}