{"id":1021114,"date":"2024-12-27T13:19:17","date_gmt":"2024-12-27T05:19:17","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1021114.html"},"modified":"2024-12-27T13:19:31","modified_gmt":"2024-12-27T05:19:31","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e5%90%88%e5%b9%b6%e6%96%87%e6%a1%a3","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1021114.html","title":{"rendered":"\u5982\u4f55\u7528python\u5408\u5e76\u6587\u6863"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25163428\/fe20019b-d0d3-40ce-bccf-30a65c51ed85.webp\" alt=\"\u5982\u4f55\u7528python\u5408\u5e76\u6587\u6863\" \/><\/p>\n<p><p> \u8981\u7528Python\u5408\u5e76\u6587\u6863\uff0c<strong>\u53ef\u4ee5\u4f7f\u7528PyPDF2\u3001docx\u5e93\u3001pandas\u3001os\u7b49\u5de5\u5177\u6765\u5904\u7406PDF\u3001Word\u548cExcel\u6587\u6863<\/strong>\u3002\u901a\u8fc7\u8fd9\u4e9b\u5e93\uff0c\u60a8\u80fd\u591f\u5206\u522b\u8bfb\u53d6\u3001\u7f16\u8f91\u3001\u5904\u7406\u5e76\u5408\u5e76\u4e0d\u540c\u683c\u5f0f\u7684\u6587\u6863\u3002<strong>\u9009\u62e9\u5408\u9002\u7684\u5e93\u548c\u65b9\u6cd5\u662f\u5173\u952e<\/strong>\uff0c\u56e0\u4e3a\u6bcf\u79cd\u6587\u6863\u683c\u5f0f\u90fd\u6709\u5176\u7279\u5b9a\u7684\u5904\u7406\u65b9\u6cd5\u3002\u4e3a\u4e86\u8bf4\u660e\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\uff0c\u6211\u4eec\u4ee5\u5408\u5e76PDF\u548cWord\u6587\u6863\u4e3a\u4f8b\u8fdb\u884c\u8be6\u7ec6\u63cf\u8ff0\u3002<\/p>\n<\/p>\n<p><p><strong>PDF\u6587\u6863\u5408\u5e76<\/strong><\/p>\n<\/p>\n<p><p>\u5bf9\u4e8ePDF\u6587\u6863\u7684\u5408\u5e76\uff0cPyPDF2\u662f\u4e00\u4e2a\u975e\u5e38\u5e38\u7528\u4e14\u6613\u7528\u7684\u5e93\u3002\u9996\u5148\uff0c\u60a8\u9700\u8981\u5b89\u88c5\u8be5\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7pip\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install PyPDF2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6b65\u9aa4\u6765\u5408\u5e76PDF\u6587\u6863\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5bfc\u5165\u5e93\u5e76\u51c6\u5907\u6587\u4ef6<\/strong><br \/>\u9996\u5148\u9700\u8981\u5bfc\u5165PyPDF2\u5e93\uff0c\u5e76\u51c6\u5907\u597d\u60a8\u8981\u5408\u5e76\u7684PDF\u6587\u4ef6\u3002\u5047\u8bbe\u6211\u4eec\u6709\u4e24\u4e2aPDF\u6587\u4ef6\uff1a<code>file1.pdf<\/code>\u548c<code>file2.pdf<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efaPDF\u9605\u8bfb\u5668\u548c\u5199\u5165\u5668\u5bf9\u8c61<\/strong><br \/>\u4f7f\u7528PyPDF2\u4e2d\u7684<code>PdfReader<\/code>\u548c<code>PdfWriter<\/code>\u5bf9\u8c61\u6765\u8bfb\u53d6\u548c\u5199\u5165PDF\u5185\u5bb9\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6dfb\u52a0\u9875\u9762<\/strong><br \/>\u901a\u8fc7\u5faa\u73af\u904d\u5386\u6bcf\u4e2a\u6587\u4ef6\u4e2d\u7684\u9875\u9762\uff0c\u7136\u540e\u5c06\u8fd9\u4e9b\u9875\u9762\u6dfb\u52a0\u5230PDF\u5199\u5165\u5668\u5bf9\u8c61\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8f93\u51fa\u5408\u5e76\u540e\u7684PDF<\/strong><br \/>\u4f7f\u7528PDF\u5199\u5165\u5668\u5bf9\u8c61\u5c06\u5408\u5e76\u540e\u7684\u5185\u5bb9\u5199\u5165\u65b0\u7684PDF\u6587\u4ef6\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PyPDF2 import PdfReader, PdfWriter<\/p>\n<h2><strong>\u521b\u5efaPDF\u5199\u5165\u5668\u5bf9\u8c61<\/strong><\/h2>\n<p>pdf_writer = PdfWriter()<\/p>\n<h2><strong>\u8bfb\u53d6\u7b2c\u4e00\u4e2aPDF\u6587\u4ef6<\/strong><\/h2>\n<p>pdf_reader1 = PdfReader(open(&#39;file1.pdf&#39;, &#39;rb&#39;))<\/p>\n<p>for page in pdf_reader1.pages:<\/p>\n<p>    pdf_writer.add_page(page)<\/p>\n<h2><strong>\u8bfb\u53d6\u7b2c\u4e8c\u4e2aPDF\u6587\u4ef6<\/strong><\/h2>\n<p>pdf_reader2 = PdfReader(open(&#39;file2.pdf&#39;, &#39;rb&#39;))<\/p>\n<p>for page in pdf_reader2.pages:<\/p>\n<p>    pdf_writer.add_page(page)<\/p>\n<h2><strong>\u5199\u5165\u5408\u5e76\u540e\u7684PDF\u6587\u4ef6<\/strong><\/h2>\n<p>with open(&#39;merged.pdf&#39;, &#39;wb&#39;) as out_file:<\/p>\n<p>    pdf_writer.write(out_file)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>Word\u6587\u6863\u5408\u5e76<\/strong><\/p>\n<\/p>\n<p><p>\u5bf9\u4e8eWord\u6587\u6863\u7684\u5408\u5e76\uff0c\u53ef\u4ee5\u4f7f\u7528<code>python-docx<\/code>\u5e93\u3002\u9996\u5148\uff0c\u786e\u4fdd\u5b89\u88c5\u8be5\u5e93\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>\u4f7f\u7528<code>python-docx<\/code>\u5e93\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u5904\u7406Word\u6587\u6863\u3002\u4ee5\u4e0b\u662f\u5408\u5e76Word\u6587\u6863\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5bfc\u5165\u5e93\u5e76\u51c6\u5907\u6587\u4ef6<\/strong><br \/>\u5bfc\u5165<code>docx<\/code>\u6a21\u5757\uff0c\u5e76\u51c6\u5907\u597d\u60a8\u8981\u5408\u5e76\u7684Word\u6587\u4ef6\uff0c\u5047\u8bbe\u4e3a<code>doc1.docx<\/code>\u548c<code>doc2.docx<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efa\u6587\u6863\u5bf9\u8c61<\/strong><br \/>\u4f7f\u7528<code>Document<\/code>\u7c7b\u521b\u5efa\u6587\u6863\u5bf9\u8c61\u6765\u8bfb\u53d6\u548c\u5199\u5165Word\u6587\u6863\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6dfb\u52a0\u6bb5\u843d\u548c\u5185\u5bb9<\/strong><br \/>\u901a\u8fc7\u904d\u5386\u6bcf\u4e2a\u6587\u6863\u4e2d\u7684\u6bb5\u843d\u548c\u5176\u4ed6\u5185\u5bb9\uff0c\u7136\u540e\u5c06\u8fd9\u4e9b\u5185\u5bb9\u6dfb\u52a0\u5230\u65b0\u7684\u6587\u6863\u5bf9\u8c61\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8f93\u51fa\u5408\u5e76\u540e\u7684Word\u6587\u6863<\/strong><br \/>\u4f7f\u7528\u6587\u6863\u5bf9\u8c61\u5c06\u5408\u5e76\u540e\u7684\u5185\u5bb9\u5199\u5165\u65b0\u7684Word\u6587\u4ef6\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from docx import Document<\/p>\n<h2><strong>\u521b\u5efa\u65b0\u7684Word\u6587\u6863<\/strong><\/h2>\n<p>merged_doc = Document()<\/p>\n<h2><strong>\u8bfb\u53d6\u7b2c\u4e00\u4e2aWord\u6587\u6863<\/strong><\/h2>\n<p>doc1 = Document(&#39;doc1.docx&#39;)<\/p>\n<p>for paragraph in doc1.paragraphs:<\/p>\n<p>    merged_doc.add_paragraph(paragraph.text)<\/p>\n<h2><strong>\u8bfb\u53d6\u7b2c\u4e8c\u4e2aWord\u6587\u6863<\/strong><\/h2>\n<p>doc2 = Document(&#39;doc2.docx&#39;)<\/p>\n<p>for paragraph in doc2.paragraphs:<\/p>\n<p>    merged_doc.add_paragraph(paragraph.text)<\/p>\n<h2><strong>\u4fdd\u5b58\u5408\u5e76\u540e\u7684Word\u6587\u6863<\/strong><\/h2>\n<p>merged_doc.save(&#39;merged.docx&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>Excel\u6587\u6863\u5408\u5e76<\/strong><\/p>\n<\/p>\n<p><p>\u5bf9\u4e8eExcel\u6587\u6863\u7684\u5408\u5e76\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pandas<\/code>\u5e93\u6765\u5904\u7406\u3002\u9996\u5148\uff0c\u60a8\u9700\u8981\u5b89\u88c5\u8be5\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pandas<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528<code>pandas<\/code>\u5e93\u53ef\u4ee5\u8f7b\u677e\u5730\u5904\u7406Excel\u6587\u4ef6\u3002\u4ee5\u4e0b\u662f\u5408\u5e76Excel\u6587\u6863\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5bfc\u5165\u5e93\u5e76\u51c6\u5907\u6587\u4ef6<\/strong><br \/>\u5bfc\u5165<code>pandas<\/code>\u6a21\u5757\uff0c\u5e76\u51c6\u5907\u597d\u60a8\u8981\u5408\u5e76\u7684Excel\u6587\u4ef6\uff0c\u5047\u8bbe\u4e3a<code>file1.xlsx<\/code>\u548c<code>file2.xlsx<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8bfb\u53d6Excel\u6587\u4ef6<\/strong><br \/>\u4f7f\u7528<code>pandas<\/code>\u7684<code>read_excel<\/code>\u51fd\u6570\u8bfb\u53d6Excel\u6587\u4ef6\u4e2d\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5408\u5e76\u6570\u636e<\/strong><br \/>\u4f7f\u7528<code>pandas<\/code>\u7684<code>concat<\/code>\u51fd\u6570\u5c06\u591a\u4e2aDataFrame\u5408\u5e76\u4e3a\u4e00\u4e2a\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8f93\u51fa\u5408\u5e76\u540e\u7684Excel\u6587\u4ef6<\/strong><br \/>\u4f7f\u7528<code>to_excel<\/code>\u51fd\u6570\u5c06\u5408\u5e76\u540e\u7684\u6570\u636e\u5199\u5165\u65b0\u7684Excel\u6587\u4ef6\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u8bfb\u53d6\u7b2c\u4e00\u4e2aExcel\u6587\u4ef6<\/strong><\/h2>\n<p>df1 = pd.read_excel(&#39;file1.xlsx&#39;)<\/p>\n<h2><strong>\u8bfb\u53d6\u7b2c\u4e8c\u4e2aExcel\u6587\u4ef6<\/strong><\/h2>\n<p>df2 = pd.read_excel(&#39;file2.xlsx&#39;)<\/p>\n<h2><strong>\u5408\u5e76\u6570\u636e<\/strong><\/h2>\n<p>merged_df = pd.concat([df1, df2])<\/p>\n<h2><strong>\u4fdd\u5b58\u5408\u5e76\u540e\u7684Excel\u6587\u4ef6<\/strong><\/h2>\n<p>merged_df.to_excel(&#39;merged.xlsx&#39;, index=False)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u6ce8\u610f\u4e8b\u9879<\/strong><\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6587\u4ef6\u8def\u5f84\u548c\u6743\u9650<\/strong>\uff1a\u786e\u4fdd\u60a8\u62e5\u6709\u5bf9\u9700\u8981\u5408\u5e76\u7684\u6587\u4ef6\u7684\u8bfb\u53d6\u6743\u9650\uff0c\u5e76\u4e14\u76ee\u6807\u6587\u4ef6\u7684\u4fdd\u5b58\u8def\u5f84\u53ef\u5199\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6587\u4ef6\u683c\u5f0f\u517c\u5bb9\u6027<\/strong>\uff1a\u5728\u5904\u7406\u4e0d\u540c\u683c\u5f0f\u7684\u6587\u6863\u65f6\uff0c\u786e\u4fdd\u4f7f\u7528\u5408\u9002\u7684\u5e93\u548c\u65b9\u6cd5\u3002\u4f8b\u5982\uff0cPDF\u6587\u4ef6\u548cWord\u6587\u4ef6\u7684\u5904\u7406\u65b9\u5f0f\u4e0d\u540c\uff0c\u9700\u8981\u5206\u522b\u4f7f\u7528PyPDF2\u548cpython-docx\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5185\u5b58\u7ba1\u7406<\/strong>\uff1a\u5728\u5408\u5e76\u5927\u578b\u6587\u6863\u65f6\uff0c\u8981\u6ce8\u610f\u5185\u5b58\u7684\u4f7f\u7528\uff0c\u53ef\u80fd\u9700\u8981\u91c7\u7528\u5206\u6279\u5904\u7406\u7684\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9519\u8bef\u5904\u7406<\/strong>\uff1a\u5728\u4ee3\u7801\u4e2d\u52a0\u5165\u9519\u8bef\u5904\u7406\u673a\u5236\uff0c\u786e\u4fdd\u5728\u51fa\u73b0\u6587\u4ef6\u8bfb\u53d6\u6216\u5199\u5165\u9519\u8bef\u65f6\u80fd\u591f\u59a5\u5584\u5904\u7406\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4ee5\u4e0a\u662f\u4f7f\u7528Python\u5408\u5e76\u4e0d\u540c\u7c7b\u578b\u6587\u6863\u7684\u57fa\u672c\u65b9\u6cd5\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\u548c\u6587\u4ef6\u683c\u5f0f\u7684\u4e0d\u540c\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u76f8\u5e94\u7684\u5e93\u548c\u65b9\u6cd5\u6765\u5b9e\u73b0\u6587\u6863\u7684\u5408\u5e76\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u5408\u5e76\u4e0d\u540c\u683c\u5f0f\u7684\u6587\u6863\uff1f<\/strong><br \/>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u5e93\uff0c\u53ef\u4ee5\u5408\u5e76\u4e0d\u540c\u683c\u5f0f\u7684\u6587\u6863\uff0c\u5982Word\u3001PDF\u548c\u6587\u672c\u6587\u4ef6\u3002\u5bf9\u4e8eWord\u6587\u6863\uff0c\u53ef\u4ee5\u4f7f\u7528<code>python-docx<\/code>\u5e93\uff0cPDF\u6587\u6863\u53ef\u4ee5\u501f\u52a9<code>PyPDF2<\/code>\u6216<code>pdfrw<\/code>\u6765\u5b9e\u73b0\u5408\u5e76\uff0c\u800c\u6587\u672c\u6587\u4ef6\u5219\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u6587\u4ef6\u8bfb\u5199\u64cd\u4f5c\u5b8c\u6210\u3002\u6839\u636e\u60a8\u7684\u9700\u6c42\uff0c\u9009\u62e9\u5408\u9002\u7684\u5e93\u8fdb\u884c\u5904\u7406\u3002<\/p>\n<p><strong>\u5408\u5e76\u6587\u6863\u65f6\uff0c\u5982\u4f55\u4fdd\u6301\u683c\u5f0f\u4e0d\u53d8\uff1f<\/strong><br \/>\u5728\u5408\u5e76\u6587\u6863\u65f6\uff0c\u786e\u4fdd\u683c\u5f0f\u4e0d\u53d8\u662f\u4e00\u4e2a\u5e38\u89c1\u9700\u6c42\u3002\u5bf9\u4e8eWord\u6587\u6863\uff0c\u4f7f\u7528<code>python-docx<\/code>\u5e93\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u590d\u5236\u6bb5\u843d\u548c\u6837\u5f0f\u6765\u4fdd\u6301\u683c\u5f0f\u3002\u800c\u5bf9\u4e8ePDF\u6587\u6863\uff0c<code>PyPDF2<\/code>\u4f1a\u4fdd\u7559\u539f\u6709\u683c\u5f0f\uff0c\u786e\u4fdd\u5408\u5e76\u540e\u7684\u6587\u4ef6\u4e0e\u539f\u6587\u4ef6\u4e00\u81f4\u3002\u5c3d\u91cf\u4f7f\u7528\u4e13\u4e1a\u7684\u5e93\u548c\u5de5\u5177\uff0c\u4ee5\u51cf\u5c11\u683c\u5f0f\u4e22\u5931\u7684\u98ce\u9669\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u6279\u91cf\u5408\u5e76\u6587\u6863\uff0c\u5e76\u81ea\u52a8\u5904\u7406\u6587\u4ef6\u540d\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u811a\u672c\u6279\u91cf\u5408\u5e76\u6587\u6863\uff0c\u5e76\u81ea\u52a8\u5904\u7406\u6587\u4ef6\u540d\u3002\u5229\u7528<code>os<\/code>\u5e93\u83b7\u53d6\u6587\u4ef6\u5217\u8868\uff0c\u7136\u540e\u5faa\u73af\u904d\u5386\u6bcf\u4e2a\u6587\u4ef6\u8fdb\u884c\u5408\u5e76\u3002\u53ef\u4ee5\u6839\u636e\u6587\u4ef6\u7684\u521b\u5efa\u65f6\u95f4\u3001\u540d\u79f0\u6216\u5176\u4ed6\u5c5e\u6027\u6765\u751f\u6210\u65b0\u7684\u6587\u4ef6\u540d\uff0c\u4ece\u800c\u5b9e\u73b0\u81ea\u52a8\u5316\u5904\u7406\u3002\u8fd9\u79cd\u65b9\u6cd5\u5728\u5904\u7406\u5927\u91cf\u6587\u6863\u65f6\u5c24\u5176\u9ad8\u6548\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u7528Python\u5408\u5e76\u6587\u6863\uff0c\u53ef\u4ee5\u4f7f\u7528PyPDF2\u3001docx\u5e93\u3001pandas\u3001os\u7b49\u5de5\u5177\u6765\u5904\u7406PDF\u3001Word\u548cE [&hellip;]","protected":false},"author":3,"featured_media":1021139,"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\/1021114"}],"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=1021114"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1021114\/revisions"}],"predecessor-version":[{"id":1021140,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1021114\/revisions\/1021140"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1021139"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1021114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1021114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1021114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}