{"id":1079479,"date":"2025-01-08T12:21:14","date_gmt":"2025-01-08T04:21:14","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1079479.html"},"modified":"2025-01-08T12:21:16","modified_gmt":"2025-01-08T04:21:16","slug":"python%e5%a6%82%e4%bd%95%e5%81%9a%e6%b5%8f%e8%a7%88%e5%99%a8%e6%8f%92%e4%bb%b6-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1079479.html","title":{"rendered":"python\u5982\u4f55\u505a\u6d4f\u89c8\u5668\u63d2\u4ef6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24182508\/e6d4726d-a872-4bf1-bdb7-9ebdbe57920f.webp\" alt=\"python\u5982\u4f55\u505a\u6d4f\u89c8\u5668\u63d2\u4ef6\" \/><\/p>\n<p><p> <strong>Python\u5e76\u4e0d\u662f\u76f4\u63a5\u7528\u4e8e\u521b\u5efa\u6d4f\u89c8\u5668\u63d2\u4ef6\u7684\u6700\u5e38\u89c1\u8bed\u8a00\uff0c\u56e0\u4e3a\u6d4f\u89c8\u5668\u63d2\u4ef6\u901a\u5e38\u4f7f\u7528JavaScript\u3001HTML\u548cCSS\u6765\u5f00\u53d1\u3002\u7136\u800c\uff0c\u901a\u8fc7\u4f7f\u7528Python\uff0c\u53ef\u4ee5\u5b9e\u73b0\u67d0\u4e9b\u529f\u80fd\u7684\u540e\u7aef\u90e8\u5206\uff0c\u7136\u540e\u901a\u8fc7\u6d4f\u89c8\u5668\u63d2\u4ef6\u4e0e\u8fd9\u4e9b\u540e\u7aef\u529f\u80fd\u8fdb\u884c\u4ea4\u4e92\u3002<\/strong> \u901a\u5e38\uff0c\u6d4f\u89c8\u5668\u63d2\u4ef6\u7684\u5f00\u53d1\u9700\u8981\u4f7f\u7528JavaScript\uff08\u5c24\u5176\u662fWebExtensions API\uff09\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7Python\u7f16\u5199\u540e\u7aef\u670d\u52a1\u6765\u63d0\u4f9b\u6570\u636e\u6216\u5904\u7406\u8bf7\u6c42\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u8ba8\u8bba\u5982\u4f55\u4f7f\u7528Python\u7ed3\u5408\u6d4f\u89c8\u5668\u63d2\u4ef6\u5b9e\u73b0\u4e00\u4e9b\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u6d4f\u89c8\u5668\u63d2\u4ef6\u7684\u57fa\u672c\u6982\u5ff5<\/h3>\n<\/p>\n<p><p>\u6d4f\u89c8\u5668\u63d2\u4ef6\uff08\u6269\u5c55\uff09\u662f\u4e00\u79cd\u8f6f\u4ef6\u6a21\u5757\uff0c\u5b83\u6dfb\u52a0\u5230\u6d4f\u89c8\u5668\u4e2d\u4ee5\u589e\u5f3a\u5176\u529f\u80fd\u3002\u63d2\u4ef6\u53ef\u4ee5\u5728\u7528\u6237\u6d4f\u89c8\u7f51\u9875\u65f6\u6267\u884c\u5404\u79cd\u4efb\u52a1\uff0c\u4f8b\u5982\u5185\u5bb9\u8fc7\u6ee4\u3001\u5e7f\u544a\u62e6\u622a\u3001\u9875\u9762\u589e\u5f3a\u7b49\u3002\u5927\u591a\u6570\u73b0\u4ee3\u6d4f\u89c8\u5668\uff08\u5982Chrome\u3001Firefox\uff09\u90fd\u652f\u6301WebExtensions API\uff0c\u7528\u4e8e\u5f00\u53d1\u8de8\u6d4f\u89c8\u5668\u7684\u63d2\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u6d4f\u89c8\u5668\u63d2\u4ef6\u7684\u57fa\u672c\u7ed3\u6784<\/h3>\n<\/p>\n<p><p>\u4e00\u4e2a\u5178\u578b\u7684\u6d4f\u89c8\u5668\u63d2\u4ef6\u7531\u4ee5\u4e0b\u6587\u4ef6\u7ec4\u6210\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>manifest.json<\/strong>\uff1a\u63d2\u4ef6\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u5305\u542b\u63d2\u4ef6\u7684\u57fa\u672c\u4fe1\u606f\u548c\u6743\u9650\u58f0\u660e\u3002<\/li>\n<li><strong>background.js<\/strong>\uff1a\u540e\u53f0\u811a\u672c\uff0c\u5904\u7406\u63d2\u4ef6\u7684\u4e3b\u8981\u903b\u8f91\u3002<\/li>\n<li><strong>popup.html<\/strong>\uff1a\u63d2\u4ef6\u7684\u7528\u6237\u754c\u9762\u3002<\/li>\n<li><strong>content_scripts<\/strong>\uff1a\u8fd0\u884c\u5728\u7f51\u9875\u4e0a\u4e0b\u6587\u4e2d\u7684\u811a\u672c\uff0c\u5141\u8bb8\u63d2\u4ef6\u4e0e\u7f51\u9875\u5185\u5bb9\u8fdb\u884c\u4ea4\u4e92\u3002<\/li>\n<\/ul>\n<p><h3>\u4e09\u3001\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u6d4f\u89c8\u5668\u63d2\u4ef6<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8bbe\u7f6e\u9879\u76ee\u7ed3\u6784<\/strong><\/p>\n<p>\u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2a\u76ee\u5f55\u6765\u5b58\u653e\u63d2\u4ef6\u7684\u6240\u6709\u6587\u4ef6\u3002\u5047\u8bbe\u6211\u4eec\u5c06\u76ee\u5f55\u547d\u540d\u4e3a<code>my_extension<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f16\u5199manifest.json<\/strong><\/p>\n<p>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>manifest.json<\/code>\u7684\u6587\u4ef6\uff0c\u5e76\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><pre><code class=\"language-json\">{<\/p>\n<p>  &quot;manifest_version&quot;: 2,<\/p>\n<p>  &quot;name&quot;: &quot;My Extension&quot;,<\/p>\n<p>  &quot;version&quot;: &quot;1.0&quot;,<\/p>\n<p>  &quot;description&quot;: &quot;A simple browser extension example.&quot;,<\/p>\n<p>  &quot;permissions&quot;: [<\/p>\n<p>    &quot;activeTab&quot;<\/p>\n<p>  ],<\/p>\n<p>  &quot;browser_action&quot;: {<\/p>\n<p>    &quot;default_popup&quot;: &quot;popup.html&quot;,<\/p>\n<p>    &quot;default_icon&quot;: {<\/p>\n<p>      &quot;16&quot;: &quot;icons\/icon16.png&quot;,<\/p>\n<p>      &quot;48&quot;: &quot;icons\/icon48.png&quot;,<\/p>\n<p>      &quot;128&quot;: &quot;icons\/icon128.png&quot;<\/p>\n<p>    }<\/p>\n<p>  },<\/p>\n<p>  &quot;background&quot;: {<\/p>\n<p>    &quot;scripts&quot;: [&quot;background.js&quot;],<\/p>\n<p>    &quot;persistent&quot;: false<\/p>\n<p>  },<\/p>\n<p>  &quot;content_scripts&quot;: [<\/p>\n<p>    {<\/p>\n<p>      &quot;matches&quot;: [&quot;&lt;all_urls&gt;&quot;],<\/p>\n<p>      &quot;js&quot;: [&quot;content.js&quot;]<\/p>\n<p>    }<\/p>\n<p>  ]<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u521b\u5efa\u7528\u6237\u754c\u9762<\/strong><\/p>\n<p>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>popup.html<\/code>\u7684\u6587\u4ef6\uff0c\u4f5c\u4e3a\u63d2\u4ef6\u7684\u7528\u6237\u754c\u9762\uff1a<\/li>\n<\/p>\n<\/ol>\n<p><pre><code class=\"language-html\">&lt;!DOCTYPE html&gt;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;head&gt;<\/p>\n<p>  &lt;title&gt;My Extension&lt;\/title&gt;<\/p>\n<p>  &lt;style&gt;<\/p>\n<p>    body {<\/p>\n<p>      width: 200px;<\/p>\n<p>      height: 200px;<\/p>\n<p>      display: flex;<\/p>\n<p>      align-items: center;<\/p>\n<p>      justify-content: center;<\/p>\n<p>      font-family: Arial, sans-serif;<\/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;button id=&quot;fetchData&quot;&gt;Fetch Data&lt;\/button&gt;<\/p>\n<p>  &lt;script src=&quot;popup.js&quot;&gt;&lt;\/script&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"4\">\n<li><strong>\u7f16\u5199\u540e\u53f0\u811a\u672c<\/strong><\/p>\n<p>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>background.js<\/code>\u7684\u6587\u4ef6\uff0c\u7528\u4e8e\u5904\u7406\u63d2\u4ef6\u7684\u540e\u53f0\u903b\u8f91\uff1a<\/li>\n<\/p>\n<\/ol>\n<p><pre><code class=\"language-javascript\">chrome.runtime.onInstalled.addListener(function() {<\/p>\n<p>  console.log(&quot;Extension installed.&quot;);<\/p>\n<p>});<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"5\">\n<li><strong>\u7f16\u5199\u5185\u5bb9\u811a\u672c<\/strong><\/p>\n<p>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>content.js<\/code>\u7684\u6587\u4ef6\uff0c\u7528\u4e8e\u4e0e\u7f51\u9875\u5185\u5bb9\u8fdb\u884c\u4ea4\u4e92\uff1a<\/li>\n<\/p>\n<\/ol>\n<p><pre><code class=\"language-javascript\">console.log(&quot;Content script loaded.&quot;);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"6\">\n<li><strong>\u7f16\u5199popup.js<\/strong><\/p>\n<p>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>popup.js<\/code>\u7684\u6587\u4ef6\uff0c\u7528\u4e8e\u5904\u7406\u7528\u6237\u754c\u9762\u7684\u4ea4\u4e92\u903b\u8f91\uff1a<\/li>\n<\/p>\n<\/ol>\n<p><pre><code class=\"language-javascript\">document.getElementById(&quot;fetchData&quot;).addEventListener(&quot;click&quot;, function() {<\/p>\n<p>  fetch(&#39;http:\/\/localhost:5000\/data&#39;)<\/p>\n<p>    .then(response =&gt; response.json())<\/p>\n<p>    .then(data =&gt; console.log(data))<\/p>\n<p>    .catch(error =&gt; console.error(&#39;Error:&#39;, error));<\/p>\n<p>});<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528Python\u521b\u5efa\u540e\u7aef\u670d\u52a1<\/h3>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5Flask<\/strong><\/p>\n<p>\u6211\u4eec\u5c06\u4f7f\u7528Flask\u6846\u67b6\u6765\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u540e\u7aef\u670d\u52a1\u3002\u9996\u5148\uff0c\u5b89\u88c5Flask\uff1a<\/li>\n<\/p>\n<\/ol>\n<p><pre><code class=\"language-bash\">pip install Flask<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u7f16\u5199Flask\u5e94\u7528<\/strong><\/p>\n<p>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>app.py<\/code>\u7684\u6587\u4ef6\uff0c\u5e76\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/li>\n<\/p>\n<\/ol>\n<p><pre><code class=\"language-python\">from flask import Flask, jsonify<\/p>\n<p>app = Flask(__name__)<\/p>\n<p>@app.route(&#39;\/data&#39;, methods=[&#39;GET&#39;])<\/p>\n<p>def get_data():<\/p>\n<p>    data = {<\/p>\n<p>        &quot;message&quot;: &quot;Hello from Flask!&quot;<\/p>\n<p>    }<\/p>\n<p>    return jsonify(data)<\/p>\n<p>if __name__ == &#39;__m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n__&#39;:<\/p>\n<p>    app.run(host=&#39;0.0.0.0&#39;, port=5000)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u8fd0\u884cFlask\u5e94\u7528<\/strong><\/p>\n<p>\u5728\u7ec8\u7aef\u4e2d\u8fd0\u884cFlask\u5e94\u7528\uff1a<\/li>\n<\/p>\n<\/ol>\n<p><pre><code class=\"language-bash\">python app.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u5c06\u63d2\u4ef6\u52a0\u8f7d\u5230\u6d4f\u89c8\u5668\u4e2d<\/h3>\n<\/p>\n<ol>\n<li>\u6253\u5f00Chrome\u6d4f\u89c8\u5668\uff0c\u8fdb\u5165\u6269\u5c55\u7a0b\u5e8f\u7ba1\u7406\u9875\u9762\uff08chrome:\/\/extensions\/\uff09\u3002<\/li>\n<li>\u6253\u5f00\u5f00\u53d1\u8005\u6a21\u5f0f\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u52a0\u8f7d\u5df2\u89e3\u538b\u7684\u6269\u5c55\u7a0b\u5e8f\u201d\uff0c\u9009\u62e9<code>my_extension<\/code>\u76ee\u5f55\u3002<\/li>\n<li>\u73b0\u5728\uff0c\u63d2\u4ef6\u5df2\u7ecf\u52a0\u8f7d\u5230\u6d4f\u89c8\u5668\u4e2d\uff0c\u53ef\u4ee5\u770b\u5230\u63d2\u4ef6\u56fe\u6807\u51fa\u73b0\u5728\u5de5\u5177\u680f\u4e2d\u3002<\/li>\n<\/ol>\n<p><h3>\u516d\u3001\u6d4b\u8bd5\u63d2\u4ef6<\/h3>\n<\/p>\n<p><p>\u70b9\u51fb\u63d2\u4ef6\u56fe\u6807\uff0c\u4f1a\u6253\u5f00<code>popup.html<\/code>\u754c\u9762\u3002\u70b9\u51fb\u201cFetch Data\u201d\u6309\u94ae\uff0c\u63d2\u4ef6\u5c06\u5411Flask\u540e\u7aef\u670d\u52a1\u53d1\u9001\u8bf7\u6c42\uff0c\u5e76\u5728\u63a7\u5236\u53f0\u4e2d\u663e\u793a\u8fd4\u56de\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u6d4f\u89c8\u5668\u63d2\u4ef6\uff0c\u5e76\u4f7f\u7528Python\u7f16\u5199\u4e86\u540e\u7aef\u670d\u52a1\u6765\u63d0\u4f9b\u6570\u636e\u3002\u867d\u7136Python\u4e0d\u662f\u76f4\u63a5\u7528\u4e8e\u521b\u5efa\u6d4f\u89c8\u5668\u63d2\u4ef6\u7684\u6700\u5e38\u89c1\u8bed\u8a00\uff0c\u4f46\u5b83\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u540e\u7aef\u529f\u80fd\uff0c\u4e0e\u6d4f\u89c8\u5668\u63d2\u4ef6\u8fdb\u884c\u4ea4\u4e92\u3002\u5e0c\u671b\u901a\u8fc7\u8fd9\u7bc7\u6587\u7ae0\uff0c\u60a8\u5bf9\u5982\u4f55\u4f7f\u7528Python\u7ed3\u5408\u6d4f\u89c8\u5668\u63d2\u4ef6\u6709\u4e86\u66f4\u6df1\u5165\u7684\u4e86\u89e3\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u5f00\u53d1\u6d4f\u89c8\u5668\u63d2\u4ef6\uff1f<\/strong><br \/>\u5f00\u53d1\u6d4f\u89c8\u5668\u63d2\u4ef6\u901a\u5e38\u9700\u8981\u4f7f\u7528JavaScript\u3001HTML\u548cCSS\u7b49\u6280\u672f\uff0c\u56e0\u4e3a\u5927\u591a\u6570\u6d4f\u89c8\u5668\u7684\u6269\u5c55\u673a\u5236\u662f\u57fa\u4e8e\u8fd9\u4e9b\u8bed\u8a00\u7684\u3002\u7136\u800c\uff0c\u53ef\u4ee5\u5229\u7528Python\u7684\u67d0\u4e9b\u5e93\u548c\u5de5\u5177\u6765\u5b9e\u73b0\u540e\u7aef\u903b\u8f91\u6216\u4e0e\u6d4f\u89c8\u5668\u63d2\u4ef6\u8fdb\u884c\u4ea4\u4e92\u3002\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528Flask\u6216Django\u6784\u5efa\u4e00\u4e2a\u672c\u5730\u670d\u52a1\u5668\uff0c\u7136\u540e\u901a\u8fc7AJAX\u8bf7\u6c42\u4e0e\u6d4f\u89c8\u5668\u63d2\u4ef6\u8fdb\u884c\u6570\u636e\u4ea4\u4e92\u3002<\/p>\n<p><strong>Python\u7f16\u5199\u7684\u6d4f\u89c8\u5668\u63d2\u4ef6\u80fd\u5b9e\u73b0\u54ea\u4e9b\u529f\u80fd\uff1f<\/strong><br \/>\u867d\u7136\u4e3b\u8981\u63d2\u4ef6\u903b\u8f91\u9700\u8981\u7528JavaScript\u5b9e\u73b0\uff0cPython\u53ef\u4ee5\u7528\u4e8e\u5904\u7406\u590d\u6742\u7684\u6570\u636e\u5206\u6790\u3001<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u6a21\u578b\u6216\u5176\u4ed6\u9700\u8981\u8f83\u9ad8\u8ba1\u7b97\u80fd\u529b\u7684\u4efb\u52a1\u3002\u63d2\u4ef6\u53ef\u4ee5\u901a\u8fc7\u4e0ePython\u540e\u7aef\u7684API\u4ea4\u4e92\uff0c\u5b9e\u73b0\u6570\u636e\u6293\u53d6\u3001\u5b9e\u65f6\u5206\u6790\u3001\u7528\u6237\u884c\u4e3a\u8ddf\u8e2a\u7b49\u591a\u79cd\u529f\u80fd\u3002<\/p>\n<p><strong>\u5f00\u53d1\u6d4f\u89c8\u5668\u63d2\u4ef6\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6709\u54ea\u4e9b\u5e38\u89c1\u7684\u6311\u6218\uff1f<\/strong><br \/>\u5728\u5f00\u53d1\u6d4f\u89c8\u5668\u63d2\u4ef6\u65f6\uff0c\u5f00\u53d1\u8005\u53ef\u80fd\u4f1a\u9047\u5230\u8de8\u57df\u8bf7\u6c42\u95ee\u9898\u3001\u6d4f\u89c8\u5668\u5b89\u5168\u7b56\u7565\u9650\u5236\u3001\u63d2\u4ef6\u4e0e\u9875\u9762\u5185\u5bb9\u7684\u4ea4\u4e92\u7b49\u6311\u6218\u3002\u4e3a\u4e86\u514b\u670d\u8fd9\u4e9b\u95ee\u9898\uff0c\u4e86\u89e3\u6d4f\u89c8\u5668\u7684\u6269\u5c55API\u3001CORS\uff08\u8de8\u57df\u8d44\u6e90\u5171\u4eab\uff09\u653f\u7b56\u548c\u5f00\u53d1\u8005\u5de5\u5177\u7684\u4f7f\u7528\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u6b64\u5916\uff0c\u8c03\u8bd5\u63d2\u4ef6\u65f6\u9700\u8981\u4ed4\u7ec6\u67e5\u770b\u63a7\u5236\u53f0\u8f93\u51fa\uff0c\u786e\u4fdd\u4ee3\u7801\u903b\u8f91\u6b63\u786e\u65e0\u8bef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5e76\u4e0d\u662f\u76f4\u63a5\u7528\u4e8e\u521b\u5efa\u6d4f\u89c8\u5668\u63d2\u4ef6\u7684\u6700\u5e38\u89c1\u8bed\u8a00\uff0c\u56e0\u4e3a\u6d4f\u89c8\u5668\u63d2\u4ef6\u901a\u5e38\u4f7f\u7528JavaScript\u3001HTML\u548cC [&hellip;]","protected":false},"author":3,"featured_media":1079484,"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\/1079479"}],"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=1079479"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1079479\/revisions"}],"predecessor-version":[{"id":1079487,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1079479\/revisions\/1079487"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1079484"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1079479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1079479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1079479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}