{"id":999680,"date":"2024-12-27T09:43:32","date_gmt":"2024-12-27T01:43:32","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/999680.html"},"modified":"2024-12-27T09:43:35","modified_gmt":"2024-12-27T01:43:35","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8%e9%a1%b5%e9%9d%a2%e8%bf%90%e8%a1%8cpython","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/999680.html","title":{"rendered":"\u5982\u4f55\u5728\u9875\u9762\u8fd0\u884cpython"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25074545\/4c41decb-5e6c-4e85-907f-6842c0a4873a.webp\" alt=\"\u5982\u4f55\u5728\u9875\u9762\u8fd0\u884cpython\" \/><\/p>\n<p><p> \u8981\u5728\u9875\u9762\u4e0a\u8fd0\u884cPython\uff0c\u901a\u5e38\u9700\u8981\u501f\u52a9\u4e8e\u4e00\u4e9b\u5de5\u5177\u548c\u6280\u672f\uff0c\u6bd4\u5982<strong>\u4f7f\u7528Web\u6846\u67b6\u3001\u901a\u8fc7WebAssembly\u8fd0\u884cPython\u3001\u4f7f\u7528\u5728\u7ebfPython\u89e3\u91ca\u5668<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528Web\u6846\u67b6\u662f\u5b9e\u73b0Python\u5728\u7f51\u9875\u4e0a\u8fd0\u884c\u7684\u6700\u5e38\u89c1\u65b9\u6cd5\u3002\u8fd9\u91cc\u6211\u4eec\u5c06\u8be6\u7ec6\u8bb2\u89e3\u5982\u4f55\u4f7f\u7528Django\u7b49Web\u6846\u67b6\u6765\u5b9e\u73b0Python\u5728\u7f51\u9875\u4e0a\u7684\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528WEB\u6846\u67b6<\/p>\n<\/p>\n<p><p>Web\u6846\u67b6\u662f\u6784\u5efaWeb\u5e94\u7528\u7a0b\u5e8f\u7684\u57fa\u7840\u8bbe\u65bd\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u5957\u6807\u51c6\u5de5\u5177\u548c\u7ed3\u6784\u6765\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u5feb\u901f\u6784\u5efa\u548c\u90e8\u7f72Web\u5e94\u7528\u7a0b\u5e8f\u3002\u5728Python\u4e2d\uff0cDjango\u548cFlask\u662f\u6700\u5e38\u7528\u7684Web\u6846\u67b6\u3002<\/p>\n<\/p>\n<ol>\n<li>Django<\/li>\n<\/ol>\n<p><p>Django\u662f\u4e00\u4e2a\u9ad8\u7ea7Web\u6846\u67b6\uff0c\u4f7f\u7528Python\u7f16\u5199\uff0c\u9f13\u52b1\u5feb\u901f\u5f00\u53d1\u548c\u7b80\u6d01\u3001\u5b9e\u7528\u7684\u8bbe\u8ba1\u3002\u5b83\u6ce8\u91cd\u7ec4\u4ef6\u4e4b\u95f4\u7684\u91cd\u7528\u548c\u53ef\u63d2\u62d4\u6027\uff0c\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7ba1\u7406\u754c\u9762\uff0c\u6781\u5927\u5730\u51cf\u8f7b\u4e86\u7ba1\u7406\u4efb\u52a1\u7684\u8d1f\u62c5\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u5b89\u88c5Django<\/strong>\uff1a\u9996\u5148\u786e\u4fddPython\u5df2\u5b89\u88c5\u5728\u4f60\u7684\u7cfb\u7edf\u4e2d\uff0c\u7136\u540e\u4f7f\u7528pip\u5b89\u88c5Django\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install django<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efaDjango\u9879\u76ee<\/strong>\uff1a\u4f7f\u7528Django\u547d\u4ee4\u884c\u5de5\u5177\u521b\u5efa\u65b0\u7684Django\u9879\u76ee\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">django-admin startproject myproject<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efa\u5e94\u7528\u7a0b\u5e8f<\/strong>\uff1a\u5728\u9879\u76ee\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5e94\u7528\u7a0b\u5e8f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">cd myproject<\/p>\n<p>python manage.py startapp myapp<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6e\u5e94\u7528\u7a0b\u5e8f<\/strong>\uff1a\u5728<code>settings.py<\/code>\u6587\u4ef6\u4e2d\u6ce8\u518c\u4f60\u7684\u5e94\u7528\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">INSTALLED_APPS = [<\/p>\n<p>    ...,<\/p>\n<p>    &#39;myapp&#39;,<\/p>\n<p>]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b9a\u4e49\u89c6\u56fe\u548cURL<\/strong>\uff1a\u5728<code>views.py<\/code>\u4e2d\u5b9a\u4e49\u4e00\u4e2a\u89c6\u56fe\u51fd\u6570\uff0c\u7136\u540e\u5728<code>urls.py<\/code>\u4e2d\u914d\u7f6eURL\u8def\u7531\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># myapp\/views.py<\/p>\n<p>from django.http import HttpResponse<\/p>\n<p>def my_view(request):<\/p>\n<p>    return HttpResponse(&quot;Hello, world. You&#39;re at the myapp index.&quot;)<\/p>\n<h2><strong>myproject\/urls.py<\/strong><\/h2>\n<p>from django.contrib import admin<\/p>\n<p>from django.urls import path<\/p>\n<p>from myapp import views<\/p>\n<p>urlpatterns = [<\/p>\n<p>    path(&#39;admin\/&#39;, admin.site.urls),<\/p>\n<p>    path(&#39;myapp\/&#39;, views.my_view),<\/p>\n<p>]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884c\u670d\u52a1\u5668<\/strong>\uff1a\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8\u5f00\u53d1\u670d\u52a1\u5668\uff0c\u5e76\u5728\u6d4f\u89c8\u5668\u4e2d\u67e5\u770b\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python manage.py runserver<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<ol start=\"2\">\n<li>Flask<\/li>\n<\/ol>\n<p><p>Flask\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684Web\u6846\u67b6\uff0c\u9002\u5408\u4e8e\u5c0f\u578b\u5e94\u7528\u7a0b\u5e8f\u6216\u5fae\u670d\u52a1\u3002\u4e0eDjango\u76f8\u6bd4\uff0cFlask\u66f4\u52a0\u7075\u6d3b\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u5b89\u88c5Flask<\/strong>\uff1a\u4f7f\u7528pip\u5b89\u88c5Flask\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install flask<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efaFlask\u5e94\u7528<\/strong>\uff1a\u521b\u5efa\u4e00\u4e2aPython\u6587\u4ef6\uff0c\u5e76\u5b9a\u4e49Flask\u5e94\u7528\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># app.py<\/p>\n<p>from flask import Flask<\/p>\n<p>app = Flask(__name__)<\/p>\n<p>@app.route(&#39;\/&#39;)<\/p>\n<p>def hello_world():<\/p>\n<p>    return &#39;Hello, World!&#39;<\/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()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884c\u5e94\u7528<\/strong>\uff1a\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c\u5e94\u7528\uff0c\u5e76\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python app.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<p><p>\u4e8c\u3001\u901a\u8fc7WEBASSEMBLY\u8fd0\u884cPYTHON<\/p>\n<\/p>\n<p><p>WebAssembly\uff08Wasm\uff09\u662f\u73b0\u4ee3Web\u6d4f\u89c8\u5668\u4e2d\u7684\u4e00\u79cd\u4f4e\u7ea7\u5b57\u8282\u7801\u683c\u5f0f\uff0c\u65e8\u5728\u63d0\u4f9b\u63a5\u8fd1\u672c\u673a\u7684\u6027\u80fd\u3002\u901a\u8fc7\u5c06Python\u4ee3\u7801\u7f16\u8bd1\u4e3aWebAssembly\uff0c\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884cPython\u3002<\/p>\n<\/p>\n<ol>\n<li>Pyodide<\/li>\n<\/ol>\n<p><p>Pyodide\u662f\u4e00\u4e2a\u5c06Python\u79d1\u5b66\u8ba1\u7b97\u73af\u5883\u79fb\u690d\u5230Web\u7684\u9879\u76ee\uff0c\u57fa\u4e8eWebAssembly\u3002\u5b83\u5141\u8bb8\u5728\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884cPython\uff0c\u5e76\u652f\u6301\u5927\u591a\u6570\u79d1\u5b66\u8ba1\u7b97\u5e93\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u4f7f\u7528Pyodide<\/strong>\uff1a\u5c06Pyodide\u5e93\u6dfb\u52a0\u5230HTML\u9875\u9762\uff0c\u5e76\u5728\u811a\u672c\u4e2d\u6267\u884cPython\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-html\">&lt;script src=&quot;https:\/\/cdn.jsdelivr.net\/pyodide\/v0.18.1\/full\/pyodide.js&quot;&gt;&lt;\/script&gt;<\/p>\n<p>&lt;script&gt;<\/p>\n<p>  async function main() {<\/p>\n<p>    await loadPyodide();<\/p>\n<p>    const result = pyodide.runPython(`<\/p>\n<p>      import math<\/p>\n<p>      math.sqrt(16)<\/p>\n<p>    `);<\/p>\n<p>    console.log(result);  \/\/ \u8f93\u51fa\uff1a4.0<\/p>\n<p>  }<\/p>\n<p>  main();<\/p>\n<p>&lt;\/script&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<ol start=\"2\">\n<li>Brython<\/li>\n<\/ol>\n<p><p>Brython\u662f\u4e00\u4e2aPython 3\u7684\u5b9e\u73b0\uff0c\u80fd\u591f\u5728\u5ba2\u6237\u7aef\uff08\u6d4f\u89c8\u5668\uff09\u4e2d\u8fd0\u884cPython\u4ee3\u7801\u3002\u5b83\u5c06Python\u4ee3\u7801\u7f16\u8bd1\u4e3aJavaScript\uff0c\u5e76\u5728\u6d4f\u89c8\u5668\u4e2d\u6267\u884c\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u4f7f\u7528Brython<\/strong>\uff1a\u5c06Brython\u5e93\u5f15\u5165HTML\u9875\u9762\uff0c\u5e76\u5728\u9875\u9762\u4e2d\u7f16\u5199Python\u811a\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-html\">&lt;script type=&quot;text\/javascript&quot; src=&quot;https:\/\/cdn.jsdelivr.net\/npm\/brython@3.9.5\/brython.min.js&quot;&gt;&lt;\/script&gt;<\/p>\n<p>&lt;body onload=&quot;brython()&quot;&gt;<\/p>\n<p>  &lt;script type=&quot;text\/python&quot;&gt;<\/p>\n<p>    from browser import document, alert<\/p>\n<p>    def echo(event):<\/p>\n<p>        alert(document[&quot;zone&quot;].value)<\/p>\n<p>    document[&quot;mybutton&quot;].bind(&quot;click&quot;, echo)<\/p>\n<p>  &lt;\/script&gt;<\/p>\n<p>  &lt;input id=&quot;zone&quot; type=&quot;text&quot;&gt;<\/p>\n<p>  &lt;button id=&quot;mybutton&quot;&gt;Click Me!&lt;\/button&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<p><p>\u4e09\u3001\u4f7f\u7528\u5728\u7ebfPYTHON\u89e3\u91ca\u5668<\/p>\n<\/p>\n<p><p>\u5728\u7ebfPython\u89e3\u91ca\u5668\u5141\u8bb8\u5728Web\u6d4f\u89c8\u5668\u4e2d\u6267\u884cPython\u4ee3\u7801\uff0c\u800c\u4e0d\u9700\u8981\u5728\u672c\u5730\u5b89\u88c5Python\u3002\u8fd9\u7c7b\u5de5\u5177\u901a\u5e38\u7528\u4e8e\u6559\u80b2\u76ee\u7684\u6216\u5feb\u901f\u6d4b\u8bd5\u4ee3\u7801\u3002<\/p>\n<\/p>\n<ol>\n<li>Jupyter Notebook<\/li>\n<\/ol>\n<p><p>Jupyter Notebook\u662f\u4e00\u79cd\u4ea4\u4e92\u5f0f\u73af\u5883\uff0c\u652f\u6301Python\u53ca\u5176\u4ed6\u7f16\u7a0b\u8bed\u8a00\u3002\u5b83\u5141\u8bb8\u7528\u6237\u5728\u6d4f\u89c8\u5668\u4e2d\u7f16\u5199\u548c\u6267\u884c\u4ee3\u7801\uff0c\u5e76\u53ef\u89c6\u5316\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u4f7f\u7528Jupyter Notebook<\/strong>\uff1a\u53ef\u4ee5\u901a\u8fc7Anaconda\u6216pip\u5b89\u88c5Jupyter Notebook\uff0c\u5e76\u5728\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install notebook<\/p>\n<p>jupyter notebook<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u6253\u5f00\u7684\u754c\u9762\u4e2d\u521b\u5efa\u65b0\u7684Python Notebook\uff0c\u5f00\u59cb\u7f16\u5199\u548c\u6267\u884cPython\u4ee3\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<ol start=\"2\">\n<li>Repl.it<\/li>\n<\/ol>\n<p><p>Repl.it\u662f\u4e00\u4e2a\u5728\u7ebf\u7f16\u7a0b\u5e73\u53f0\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ecPython\u3002\u7528\u6237\u53ef\u4ee5\u5728\u5e73\u53f0\u4e0a\u521b\u5efa\u3001\u7f16\u8f91\u548c\u8fd0\u884cPython\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u4f7f\u7528Repl.it<\/strong>\uff1a\u8bbf\u95eeRepl.it\u7f51\u7ad9\uff0c\u6ce8\u518c\u8d26\u53f7\u540e\u521b\u5efa\u65b0\u7684Python\u9879\u76ee\u3002\u5728\u7f16\u8f91\u5668\u4e2d\u7f16\u5199\u4ee3\u7801\u5e76\u70b9\u51fb\u201cRun\u201d\u6309\u94ae\u6267\u884c\u3002<\/li>\n<\/ul>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u51e0\u79cd\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u5728\u7f51\u9875\u4e0a\u8fd0\u884cPython\u4ee3\u7801\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u4f60\u7684\u9700\u6c42\u548c\u9879\u76ee\u89c4\u6a21\u3002\u65e0\u8bba\u662f\u6784\u5efa\u5b8c\u6574\u7684Web\u5e94\u7528\uff0c\u8fd8\u662f\u7b80\u5355\u5730\u5728\u6d4f\u89c8\u5668\u4e2d\u6267\u884cPython\u4ee3\u7801\uff0c\u90fd\u6709\u76f8\u5e94\u7684\u5de5\u5177\u548c\u6846\u67b6\u53ef\u4f9b\u4f7f\u7528\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728\u7f51\u9875\u4e0a\u8fd0\u884cPython\u7684\u6700\u4f73\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u8981\u5728\u7f51\u9875\u4e0a\u8fd0\u884cPython\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u5229\u7528Web\u6846\u67b6\uff0c\u5982Flask\u6216Django\u3002\u8fd9\u4e9b\u6846\u67b6\u53ef\u4ee5\u5e2e\u52a9\u60a8\u5feb\u901f\u6784\u5efaWeb\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u5728\u670d\u52a1\u5668\u7aef\u6267\u884cPython\u4ee3\u7801\u3002\u6b64\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528Brython\u6216Transcrypt\u7b49\u5de5\u5177\u5c06Python\u4ee3\u7801\u8f6c\u6362\u4e3aJavaScript\uff0c\u4ece\u800c\u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884c\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e2d\u76f4\u63a5\u8fd0\u884cPython\u4ee3\u7801\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u5728\u7ebfIDE\u548c\u5de5\u5177\uff0c\u5982Repl.it\u3001Google Colab\u548cJupyter Notebook\uff0c\u8fd9\u4e9b\u5e73\u53f0\u5141\u8bb8\u60a8\u5728\u6d4f\u89c8\u5668\u4e2d\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002\u8fd9\u4e9b\u5de5\u5177\u63d0\u4f9b\u4e86\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u7684\u73af\u5883\uff0c\u9002\u5408\u8fdb\u884c\u7f16\u7a0b\u7ec3\u4e60\u548c\u6570\u636e\u5206\u6790\u3002<\/p>\n<p><strong>\u5982\u4f55\u5c06Python\u4e0eHTML\u7ed3\u5408\u4f7f\u7528\u4ee5\u521b\u5efa\u52a8\u6001\u7f51\u9875\uff1f<\/strong><br \/>\u8981\u5c06Python\u4e0eHTML\u7ed3\u5408\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u6a21\u677f\u5f15\u64ce\uff0c\u4f8b\u5982Jinja2\uff08Flask\u7684\u9ed8\u8ba4\u6a21\u677f\u5f15\u64ce\uff09\u6216Django\u6a21\u677f\u3002\u901a\u8fc7\u8fd9\u4e9b\u6a21\u677f\u5f15\u64ce\uff0c\u60a8\u53ef\u4ee5\u52a8\u6001\u751f\u6210HTML\u5185\u5bb9\uff0c\u7ed3\u5408Python\u7684\u903b\u8f91\u5904\u7406\u80fd\u529b\uff0c\u4ece\u800c\u521b\u5efa\u4ea4\u4e92\u6027\u5f3a\u7684\u7f51\u9875\u5e94\u7528\u3002\u5c06Python\u4ee3\u7801\u5d4c\u5165\u5230HTML\u4e2d\u4f7f\u5f97\u7f51\u9875\u80fd\u591f\u54cd\u5e94\u7528\u6237\u8f93\u5165\u5e76\u63d0\u4f9b\u5b9e\u65f6\u7684\u6570\u636e\u5904\u7406\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5728\u9875\u9762\u4e0a\u8fd0\u884cPython\uff0c\u901a\u5e38\u9700\u8981\u501f\u52a9\u4e8e\u4e00\u4e9b\u5de5\u5177\u548c\u6280\u672f\uff0c\u6bd4\u5982\u4f7f\u7528Web\u6846\u67b6\u3001\u901a\u8fc7WebAssembly\u8fd0\u884cP [&hellip;]","protected":false},"author":3,"featured_media":999692,"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\/999680"}],"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=999680"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/999680\/revisions"}],"predecessor-version":[{"id":999694,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/999680\/revisions\/999694"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/999692"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=999680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=999680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=999680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}