{"id":1122286,"date":"2025-01-08T19:19:02","date_gmt":"2025-01-08T11:19:02","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1122286.html"},"modified":"2025-01-08T19:19:05","modified_gmt":"2025-01-08T11:19:05","slug":"python%e5%a6%82%e4%bd%95%e5%88%9b%e5%bb%ba%e4%b8%80%e4%bb%bd%e9%82%80%e8%af%b7%e5%87%bd","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1122286.html","title":{"rendered":"python\u5982\u4f55\u521b\u5efa\u4e00\u4efd\u9080\u8bf7\u51fd"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25084220\/29eaee93-8413-41c4-acf7-4e04ea921442.webp\" alt=\"python\u5982\u4f55\u521b\u5efa\u4e00\u4efd\u9080\u8bf7\u51fd\" \/><\/p>\n<p><p> <strong>Python \u5982\u4f55\u521b\u5efa\u4e00\u4efd\u9080\u8bf7\u51fd<\/strong><\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528Python\u521b\u5efa\u4e00\u4efd\u9080\u8bf7\u51fd\u6709\u4ee5\u4e0b\u51e0\u4e2a\u5173\u952e\u6b65\u9aa4\uff1a\u9009\u62e9\u6a21\u677f\u3001\u586b\u5145\u6a21\u677f\u5185\u5bb9\u3001\u751f\u6210\u6700\u7ec8\u6587\u6863\u3001\u6dfb\u52a0\u4e2a\u6027\u5316\u5143\u7d20\u3002<\/strong>\u9009\u62e9\u6a21\u677f\u662f\u5173\u952e\u6b65\u9aa4\u4e4b\u4e00\uff0c\u56e0\u4e3a\u6a21\u677f\u51b3\u5b9a\u4e86\u9080\u8bf7\u51fd\u7684\u6574\u4f53\u98ce\u683c\u548c\u7ed3\u6784\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u901a\u8fc7Python\u4ee3\u7801\u5b9e\u73b0\u8fd9\u4e9b\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u9009\u62e9\u6a21\u677f<\/h3>\n<\/p>\n<p><p>\u9009\u62e9\u6a21\u677f\u662f\u521b\u5efa\u9080\u8bf7\u51fd\u7684\u7b2c\u4e00\u6b65\u3002\u6a21\u677f\u53ef\u4ee5\u662f\u4e00\u4e2a\u73b0\u6210\u7684HTML\u6587\u4ef6\u3001Word\u6587\u6863\uff0c\u751a\u81f3\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u3002\u9009\u62e9\u4e00\u4e2a\u5408\u9002\u7684\u6a21\u677f\u53ef\u4ee5\u5927\u5927\u7b80\u5316\u540e\u7eed\u7684\u5de5\u4f5c\u3002<\/p>\n<\/p>\n<p><h4>\u4f7f\u7528HTML\u6a21\u677f<\/h4>\n<\/p>\n<p><p>HTML\u6a21\u677f\u5177\u6709\u7075\u6d3b\u6027\u548c\u6613\u4e8e\u4fee\u6539\u7684\u4f18\u70b9\u3002\u53ef\u4ee5\u901a\u8fc7Jinja2\u5e93\u5c06\u53d8\u91cf\u63d2\u5165\u5230HTML\u6a21\u677f\u4e2d\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684HTML\u6a21\u677f\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-html\">&lt;!DOCTYPE html&gt;<\/p>\n<p>&lt;html lang=&quot;en&quot;&gt;<\/p>\n<p>&lt;head&gt;<\/p>\n<p>    &lt;meta charset=&quot;UTF-8&quot;&gt;<\/p>\n<p>    &lt;title&gt;Invitation&lt;\/title&gt;<\/p>\n<p>&lt;\/head&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>    &lt;h1&gt;You&#39;re Invited!&lt;\/h1&gt;<\/p>\n<p>    &lt;p&gt;Dear {{ name }},&lt;\/p&gt;<\/p>\n<p>    &lt;p&gt;We are pleased to invite you to our event on {{ date }} at {{ location }}.&lt;\/p&gt;<\/p>\n<p>    &lt;p&gt;Looking forward to seeing you there!&lt;\/p&gt;<\/p>\n<p>    &lt;p&gt;Best regards,&lt;\/p&gt;<\/p>\n<p>    &lt;p&gt;{{ sender }}&lt;\/p&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u4f7f\u7528Word\u6a21\u677f<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u66f4\u6b63\u5f0f\u7684\u9080\u8bf7\u51fd\uff0c\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528Word\u6a21\u677f\u3002Python-docx\u5e93\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5904\u7406Word\u6587\u6863\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from docx import Document<\/p>\n<p>def create_word_template():<\/p>\n<p>    doc = Document()<\/p>\n<p>    doc.add_heading(&#39;Invitation&#39;, 0)<\/p>\n<p>    doc.add_paragraph(&#39;Dear [Name],&#39;)<\/p>\n<p>    doc.add_paragraph(&#39;We are pleased to invite you to our event on [Date] at [Location].&#39;)<\/p>\n<p>    doc.add_paragraph(&#39;Looking forward to seeing you there!&#39;)<\/p>\n<p>    doc.add_paragraph(&#39;Best regards,&#39;)<\/p>\n<p>    doc.add_paragraph(&#39;[Sender]&#39;)<\/p>\n<p>    doc.save(&#39;invitation_template.docx&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u586b\u5145\u6a21\u677f\u5185\u5bb9<\/h3>\n<\/p>\n<p><p>\u586b\u5145\u6a21\u677f\u5185\u5bb9\u662f\u5c06\u5177\u4f53\u4fe1\u606f\u63d2\u5165\u5230\u6a21\u677f\u4e2d\u7684\u8fc7\u7a0b\u3002\u53ef\u4ee5\u901a\u8fc7\u53d8\u91cf\u66ff\u6362\u7684\u65b9\u5f0f\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n<\/p>\n<p><h4>\u4f7f\u7528Jinja2\u5e93\u586b\u5145HTML\u6a21\u677f<\/h4>\n<\/p>\n<p><p>Jinja2\u662f\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u6a21\u677f\u5f15\u64ce\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u53d8\u91cf\u63d2\u5165\u5230HTML\u6a21\u677f\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from jinja2 import Template<\/p>\n<p>def fill_html_template(name, date, location, sender):<\/p>\n<p>    template_str = &quot;&quot;&quot;<\/p>\n<p>    &lt;!DOCTYPE html&gt;<\/p>\n<p>    &lt;html lang=&quot;en&quot;&gt;<\/p>\n<p>    &lt;head&gt;<\/p>\n<p>        &lt;meta charset=&quot;UTF-8&quot;&gt;<\/p>\n<p>        &lt;title&gt;Invitation&lt;\/title&gt;<\/p>\n<p>    &lt;\/head&gt;<\/p>\n<p>    &lt;body&gt;<\/p>\n<p>        &lt;h1&gt;You&#39;re Invited!&lt;\/h1&gt;<\/p>\n<p>        &lt;p&gt;Dear {{ name }},&lt;\/p&gt;<\/p>\n<p>        &lt;p&gt;We are pleased to invite you to our event on {{ date }} at {{ location }}.&lt;\/p&gt;<\/p>\n<p>        &lt;p&gt;Looking forward to seeing you there!&lt;\/p&gt;<\/p>\n<p>        &lt;p&gt;Best regards,&lt;\/p&gt;<\/p>\n<p>        &lt;p&gt;{{ sender }}&lt;\/p&gt;<\/p>\n<p>    &lt;\/body&gt;<\/p>\n<p>    &lt;\/html&gt;<\/p>\n<p>    &quot;&quot;&quot;<\/p>\n<p>    template = Template(template_str)<\/p>\n<p>    return template.render(name=name, date=date, location=location, sender=sender)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u4f7f\u7528Python-docx\u5e93\u586b\u5145Word\u6a21\u677f<\/h4>\n<\/p>\n<p><p>Python-docx\u5e93\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5728Word\u6587\u6863\u4e2d\u66ff\u6362\u5360\u4f4d\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from docx import Document<\/p>\n<p>def fill_word_template(name, date, location, sender):<\/p>\n<p>    doc = Document(&#39;invitation_template.docx&#39;)<\/p>\n<p>    for paragraph in doc.paragraphs:<\/p>\n<p>        if &#39;[Name]&#39; in paragraph.text:<\/p>\n<p>            paragraph.text = paragraph.text.replace(&#39;[Name]&#39;, name)<\/p>\n<p>        if &#39;[Date]&#39; in paragraph.text:<\/p>\n<p>            paragraph.text = paragraph.text.replace(&#39;[Date]&#39;, date)<\/p>\n<p>        if &#39;[Location]&#39; in paragraph.text:<\/p>\n<p>            paragraph.text = paragraph.text.replace(&#39;[Location]&#39;, location)<\/p>\n<p>        if &#39;[Sender]&#39; in paragraph.text:<\/p>\n<p>            paragraph.text = paragraph.text.replace(&#39;[Sender]&#39;, sender)<\/p>\n<p>    doc.save(&#39;invitation_filled.docx&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u751f\u6210\u6700\u7ec8\u6587\u6863<\/h3>\n<\/p>\n<p><p>\u751f\u6210\u6700\u7ec8\u6587\u6863\u662f\u5c06\u586b\u5145\u4e86\u5185\u5bb9\u7684\u6a21\u677f\u4fdd\u5b58\u4e3a\u5b9e\u9645\u7684\u9080\u8bf7\u51fd\u6587\u6863\u3002<\/p>\n<\/p>\n<p><h4>\u751f\u6210HTML\u9080\u8bf7\u51fd<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u5c06\u586b\u5145\u4e86\u5185\u5bb9\u7684HTML\u6a21\u677f\u4fdd\u5b58\u4e3aHTML\u6587\u4ef6\uff0c\u6216\u8005\u901a\u8fc7\u7535\u5b50\u90ae\u4ef6\u53d1\u9001\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def save_html_invitation(html_content, file_path):<\/p>\n<p>    with open(file_path, &#39;w&#39;) as file:<\/p>\n<p>        file.write(html_content)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u751f\u6210Word\u9080\u8bf7\u51fd<\/h4>\n<\/p>\n<p><p>\u586b\u5145\u4e86\u5185\u5bb9\u7684Word\u6a21\u677f\u53ef\u4ee5\u76f4\u63a5\u4fdd\u5b58\u4e3aWord\u6587\u6863\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def save_word_invitation(doc, file_path):<\/p>\n<p>    doc.save(file_path)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u6dfb\u52a0\u4e2a\u6027\u5316\u5143\u7d20<\/h3>\n<\/p>\n<p><p>\u6dfb\u52a0\u4e2a\u6027\u5316\u5143\u7d20\u53ef\u4ee5\u4f7f\u9080\u8bf7\u51fd\u66f4\u52a0\u751f\u52a8\u548c\u5438\u5f15\u4eba\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u6dfb\u52a0\u80cc\u666f\u56fe\u7247\u3001\u516c\u53f8Logo\u3001\u4e8c\u7ef4\u7801\u7b49\u3002<\/p>\n<\/p>\n<p><h4>\u6dfb\u52a0\u80cc\u666f\u56fe\u7247\u548cLogo<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528HTML\u6a21\u677f\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7CSS\u6837\u5f0f\u6dfb\u52a0\u80cc\u666f\u56fe\u7247\u548cLogo\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-html\">&lt;!DOCTYPE html&gt;<\/p>\n<p>&lt;html lang=&quot;en&quot;&gt;<\/p>\n<p>&lt;head&gt;<\/p>\n<p>    &lt;meta charset=&quot;UTF-8&quot;&gt;<\/p>\n<p>    &lt;title&gt;Invitation&lt;\/title&gt;<\/p>\n<p>    &lt;style&gt;<\/p>\n<p>        body {<\/p>\n<p>            background-image: url(&#39;background.jpg&#39;);<\/p>\n<p>            background-size: cover;<\/p>\n<p>        }<\/p>\n<p>        .logo {<\/p>\n<p>            width: 100px;<\/p>\n<p>            height: auto;<\/p>\n<p>        }<\/p>\n<p>    &lt;\/style&gt;<\/p>\n<p>&lt;\/head&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>    &lt;img src=&quot;logo.png&quot; class=&quot;logo&quot; alt=&quot;Company Logo&quot;&gt;<\/p>\n<p>    &lt;h1&gt;You&#39;re Invited!&lt;\/h1&gt;<\/p>\n<p>    &lt;p&gt;Dear {{ name }},&lt;\/p&gt;<\/p>\n<p>    &lt;p&gt;We are pleased to invite you to our event on {{ date }} at {{ location }}.&lt;\/p&gt;<\/p>\n<p>    &lt;p&gt;Looking forward to seeing you there!&lt;\/p&gt;<\/p>\n<p>    &lt;p&gt;Best regards,&lt;\/p&gt;<\/p>\n<p>    &lt;p&gt;{{ sender }}&lt;\/p&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u6dfb\u52a0\u4e8c\u7ef4\u7801<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528qrcode\u5e93\u751f\u6210\u4e8c\u7ef4\u7801\uff0c\u5e76\u5c06\u5176\u63d2\u5165\u5230\u9080\u8bf7\u51fd\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import qrcode<\/p>\n<p>def generate_qr_code(data, file_path):<\/p>\n<p>    qr = qrcode.QRCode(<\/p>\n<p>        version=1,<\/p>\n<p>        error_correction=qrcode.constants.ERROR_CORRECT_L,<\/p>\n<p>        box_size=10,<\/p>\n<p>        border=4,<\/p>\n<p>    )<\/p>\n<p>    qr.add_data(data)<\/p>\n<p>    qr.make(fit=True)<\/p>\n<p>    img = qr.make_image(fill=&#39;black&#39;, back_color=&#39;white&#39;)<\/p>\n<p>    img.save(file_path)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u751f\u6210\u4e8c\u7ef4\u7801\u540e\uff0c\u53ef\u4ee5\u5c06\u5176\u63d2\u5165\u5230HTML\u6a21\u677f\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-html\">&lt;img src=&quot;qrcode.png&quot; alt=&quot;QR Code&quot;&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u7ed3\u8bba<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u9009\u62e9\u5408\u9002\u7684\u6a21\u677f\u3001\u586b\u5145\u6a21\u677f\u5185\u5bb9\u3001\u751f\u6210\u6700\u7ec8\u6587\u6863\u548c\u6dfb\u52a0\u4e2a\u6027\u5316\u5143\u7d20\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u8f7b\u677e\u521b\u5efa\u4e00\u4efd\u4e13\u4e1a\u7684\u9080\u8bf7\u51fd\u3002\u65e0\u8bba\u662fHTML\u683c\u5f0f\u8fd8\u662fWord\u683c\u5f0f\uff0c\u90fd\u53ef\u4ee5\u901a\u8fc7Python\u7684\u5f3a\u5927\u5e93\u652f\u6301\u5b9e\u73b0\u3002\u540c\u65f6\uff0c\u901a\u8fc7\u6dfb\u52a0\u4e2a\u6027\u5316\u5143\u7d20\uff0c\u53ef\u4ee5\u4f7f\u9080\u8bf7\u51fd\u66f4\u52a0\u751f\u52a8\u548c\u5438\u5f15\u4eba\u3002\u5e0c\u671b\u672c\u6587\u80fd\u4e3a\u60a8\u63d0\u4f9b\u6709\u4ef7\u503c\u7684\u53c2\u8003\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u751f\u6210\u4e2a\u6027\u5316\u7684\u9080\u8bf7\u51fd\uff1f<\/strong><br \/>\u4f7f\u7528Python\u521b\u5efa\u4e2a\u6027\u5316\u7684\u9080\u8bf7\u51fd\u53ef\u4ee5\u901a\u8fc7\u7ed3\u5408\u6a21\u677f\u548c\u6570\u636e\u6765\u5b9e\u73b0\u3002\u53ef\u4ee5\u4f7f\u7528Jinja2\u7b49\u6a21\u677f\u5f15\u64ce\u6765\u5b9a\u4e49\u9080\u8bf7\u51fd\u7684\u683c\u5f0f\uff0c\u7136\u540e\u901a\u8fc7Python\u811a\u672c\u5c06\u53c2\u4e0e\u8005\u7684\u59d3\u540d\u3001\u65e5\u671f\u3001\u5730\u70b9\u7b49\u4fe1\u606f\u586b\u5145\u5230\u6a21\u677f\u4e2d\u3002\u8fd9\u6837\u80fd\u591f\u5feb\u901f\u751f\u6210\u591a\u4efd\u5b9a\u5236\u7684\u9080\u8bf7\u51fd\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u53ef\u4ee5\u4f7f\u7528\u54ea\u4e9b\u5e93\u6765\u5904\u7406\u6587\u672c\u548c\u751f\u6210PDF\u6587\u4ef6\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>reportlab<\/code>\u5e93\u6765\u521b\u5efaPDF\u6587\u4ef6\uff0c<code>Pillow<\/code>\u7528\u4e8e\u5904\u7406\u56fe\u50cf\uff0c<code>docx<\/code>\u7528\u4e8e\u751f\u6210Word\u683c\u5f0f\u7684\u9080\u8bf7\u51fd\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>pandas<\/code>\u53ef\u4ee5\u65b9\u4fbf\u5730\u7ba1\u7406\u548c\u5904\u7406\u53c2\u4e0e\u8005\u7684\u6570\u636e\uff0c\u4ee5\u4fbf\u4e8e\u6279\u91cf\u751f\u6210\u9080\u8bf7\u51fd\u3002<\/p>\n<p><strong>\u5982\u4f55\u786e\u4fdd\u9080\u8bf7\u51fd\u5728\u4e0d\u540c\u8bbe\u5907\u4e0a\u90fd\u80fd\u826f\u597d\u663e\u793a\uff1f<\/strong><br \/>\u4e3a\u4e86\u786e\u4fdd\u9080\u8bf7\u51fd\u5728\u5404\u79cd\u8bbe\u5907\u4e0a\u90fd\u80fd\u826f\u597d\u663e\u793a\uff0c\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528\u54cd\u5e94\u5f0f\u8bbe\u8ba1\u7684\u6a21\u677f\u3002\u901a\u8fc7CSS\u548cHTML\u521b\u5efa\u7684\u7535\u5b50\u9080\u8bf7\u51fd\u80fd\u591f\u81ea\u9002\u5e94\u4e0d\u540c\u5c4f\u5e55\u5927\u5c0f\u3002\u540c\u65f6\uff0c\u751f\u6210PDF\u683c\u5f0f\u7684\u9080\u8bf7\u51fd\u4e5f\u80fd\u4fdd\u8bc1\u5728\u6253\u5370\u548c\u67e5\u770b\u65f6\u683c\u5f0f\u4e0d\u53d8\uff0c\u786e\u4fdd\u4fe1\u606f\u7684\u51c6\u786e\u4f20\u9012\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python \u5982\u4f55\u521b\u5efa\u4e00\u4efd\u9080\u8bf7\u51fd \u4f7f\u7528Python\u521b\u5efa\u4e00\u4efd\u9080\u8bf7\u51fd\u6709\u4ee5\u4e0b\u51e0\u4e2a\u5173\u952e\u6b65\u9aa4\uff1a\u9009\u62e9\u6a21\u677f\u3001\u586b\u5145\u6a21\u677f\u5185\u5bb9\u3001\u751f [&hellip;]","protected":false},"author":3,"featured_media":1122290,"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\/1122286"}],"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=1122286"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1122286\/revisions"}],"predecessor-version":[{"id":1122293,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1122286\/revisions\/1122293"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1122290"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1122286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1122286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1122286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}