{"id":957515,"date":"2024-12-27T03:03:00","date_gmt":"2024-12-26T19:03:00","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/957515.html"},"modified":"2024-12-27T03:03:03","modified_gmt":"2024-12-26T19:03:03","slug":"python%e5%a6%82%e4%bd%95%e5%b0%81%e8%a3%85%e6%88%90%e8%bd%af%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/957515.html","title":{"rendered":"python\u5982\u4f55\u5c01\u88c5\u6210\u8f6f\u4ef6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25100815\/f7cb5eb5-7dc9-4c4b-bd16-775e135ead0b.webp\" alt=\"python\u5982\u4f55\u5c01\u88c5\u6210\u8f6f\u4ef6\" \/><\/p>\n<p><p> <strong>Python\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5c01\u88c5\u6210\u8f6f\u4ef6\uff0c\u5305\u62ec\u4f7f\u7528PyInstaller\u3001cx_Freeze\u3001Py2exe\u3001PyOxidizer\u7b49\u5de5\u5177\u3002\u8fd9\u4e9b\u5de5\u5177\u5404\u6709\u7279\u70b9\uff0c\u4f46\u901a\u5e38\u7684\u8fc7\u7a0b\u5305\u62ec\u7f16\u5199Python\u4ee3\u7801\u3001\u9009\u62e9\u5408\u9002\u7684\u5c01\u88c5\u5de5\u5177\u3001\u914d\u7f6e\u6253\u5305\u9009\u9879\u3001\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/strong>\u5176\u4e2d\uff0c<strong>PyInstaller<\/strong>\u662f\u6700\u5e38\u7528\u7684\u5de5\u5177\u4e4b\u4e00\uff0c\u56e0\u5176\u7b80\u5355\u6613\u7528\u4e14\u652f\u6301\u591a\u5e73\u53f0\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u5c06Python\u9879\u76ee\u5c01\u88c5\u6210\u8f6f\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001PYINSTALLER\u5c01\u88c5<\/p>\n<\/p>\n<p><p>PyInstaller\u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002PyInstaller\u652f\u6301\u591a\u4e2a\u5e73\u53f0\uff0c\u5305\u62ecWindows\u3001macOS\u548cLinux\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5PyInstaller<\/li>\n<\/ol>\n<p><p>\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86Python\u73af\u5883\u3002\u7136\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7pip\u5b89\u88c5PyInstaller\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pyinstaller<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528PyInstaller\u6253\u5305<\/li>\n<\/ol>\n<p><p>\u4f7f\u7528PyInstaller\u6253\u5305Python\u7a0b\u5e8f\u975e\u5e38\u7b80\u5355\u3002\u5728\u7ec8\u7aef\u4e2d\u5bfc\u822a\u5230\u4f60\u7684Python\u811a\u672c\u6240\u5728\u7684\u76ee\u5f55\uff0c\u7136\u540e\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u751f\u6210\u4e00\u4e2a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u4f4d\u4e8e<code>dist<\/code>\u76ee\u5f55\u4e0b\u3002<code>--onefile<\/code>\u9009\u9879\u8868\u793a\u5c06\u6240\u6709\u4f9d\u8d56\u6253\u5305\u6210\u4e00\u4e2a\u5355\u4e00\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li>\u914d\u7f6ePyInstaller<\/li>\n<\/ol>\n<p><p>PyInstaller\u63d0\u4f9b\u4e86\u8bb8\u591a\u914d\u7f6e\u9009\u9879\uff0c\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539.spec\u6587\u4ef6\u6765\u5b9a\u5236\u6253\u5305\u8fc7\u7a0b\u3002Spec\u6587\u4ef6\u662f\u4e00\u4e2aPython\u811a\u672c\uff0c\u63cf\u8ff0\u5982\u4f55\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u751f\u6210spec\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --name=myapp your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u7f16\u8f91\u751f\u6210\u7684<code>myapp.spec<\/code>\u6587\u4ef6\uff0c\u4ee5\u81ea\u5b9a\u4e49\u6253\u5305\u9009\u9879\uff0c\u5982\u6dfb\u52a0\u6570\u636e\u6587\u4ef6\u3001\u4fee\u6539\u56fe\u6807\u7b49\u3002<\/p>\n<\/p>\n<ol start=\"4\">\n<li>\u5904\u7406\u4f9d\u8d56\u95ee\u9898<\/li>\n<\/ol>\n<p><p>\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u4f9d\u8d56\u95ee\u9898\u3002\u4f8b\u5982\uff0c\u67d0\u4e9b\u5916\u90e8\u5e93\u53ef\u80fd\u65e0\u6cd5\u6b63\u786e\u6253\u5305\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4f60\u9700\u8981\u624b\u52a8\u6dfb\u52a0\u8fd9\u4e9b\u5e93\u5230spec\u6587\u4ef6\u4e2d\uff0c\u6216\u8005\u4f7f\u7528PyInstaller\u7684<code>--hidden-import<\/code>\u9009\u9879\u6765\u89e3\u51b3\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001CX_FREEZE\u5c01\u88c5<\/p>\n<\/p>\n<p><p>cx_Freeze\u662f\u53e6\u4e00\u4e2a\u7528\u4e8e\u5c06Python\u7a0b\u5e8f\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5de5\u5177\uff0c\u652f\u6301Windows\u548cLinux\u5e73\u53f0\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5cx_Freeze<\/li>\n<\/ol>\n<p><p>\u540c\u6837\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7pip\u5b89\u88c5cx_Freeze\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install cx_Freeze<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u7f16\u5199setup\u811a\u672c<\/li>\n<\/ol>\n<p><p>\u8981\u4f7f\u7528cx_Freeze\uff0c\u4f60\u9700\u8981\u7f16\u5199\u4e00\u4e2asetup\u811a\u672c\uff0c\u6307\u5b9a\u8981\u6253\u5305\u7684Python\u811a\u672c\u548c\u4f9d\u8d56\u9879\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from cx_Freeze import setup, Executable<\/p>\n<p>setup(<\/p>\n<p>    name = &quot;myapp&quot;,<\/p>\n<p>    version = &quot;0.1&quot;,<\/p>\n<p>    description = &quot;My Application&quot;,<\/p>\n<p>    executables = [Executable(&quot;your_script.py&quot;)]<\/p>\n<p>)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u8fd0\u884csetup\u811a\u672c<\/li>\n<\/ol>\n<p><p>\u5728\u7ec8\u7aef\u4e2d\u8fd0\u884csetup\u811a\u672c\uff0c\u4ee5\u6253\u5305\u4f60\u7684\u7a0b\u5e8f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python setup.py build<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u521b\u5efa\u4e00\u4e2abuild\u76ee\u5f55\uff0c\u5176\u4e2d\u5305\u542b\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001PY2EXE\u5c01\u88c5<\/p>\n<\/p>\n<p><p>Py2exe\u662f\u4e13\u95e8\u7528\u4e8e\u5c06Python\u811a\u672c\u6253\u5305\u6210Windows\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5de5\u5177\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5py2exe<\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u786e\u4fdd\u5b89\u88c5\u4e86py2exe\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install py2exe<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u521b\u5efasetup\u6587\u4ef6<\/li>\n<\/ol>\n<p><p>\u4e0ecx_Freeze\u7c7b\u4f3c\uff0c\u4f60\u9700\u8981\u521b\u5efa\u4e00\u4e2asetup\u6587\u4ef6\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from distutils.core import setup<\/p>\n<p>import py2exe<\/p>\n<p>setup(console=[&#39;your_script.py&#39;])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u8fd0\u884csetup\u6587\u4ef6<\/li>\n<\/ol>\n<p><p>\u5728\u7ec8\u7aef\u4e2d\u8fd0\u884c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python setup.py py2exe<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001PYOXIDIZER\u5c01\u88c5<\/p>\n<\/p>\n<p><p>PyOxidizer\u662f\u4e00\u4e2a\u65b0\u5174\u7684\u5de5\u5177\uff0c\u80fd\u591f\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u5e76\u4e14\u652f\u6301\u9759\u6001\u94fe\u63a5Python\u89e3\u91ca\u5668\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5PyOxidizer<\/li>\n<\/ol>\n<p><p>PyOxidizer\u7684\u5b89\u88c5\u7a0d\u6709\u4e0d\u540c\uff0c\u9700\u8981\u4ece\u5b98\u65b9GitHub\u4ed3\u5e93\u4e0b\u8f7d\u5e76\u7f16\u8bd1\uff0c\u6216\u8005\u4f7f\u7528\u9884\u7f16\u8bd1\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u521b\u5efa\u914d\u7f6e\u6587\u4ef6<\/li>\n<\/ol>\n<p><p>PyOxidizer\u4f7f\u7528\u4e00\u4e2aTOML\u683c\u5f0f\u7684\u914d\u7f6e\u6587\u4ef6\u6765\u63cf\u8ff0\u6253\u5305\u8fc7\u7a0b\u3002\u4f60\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-toml\">[application]<\/p>\n<p>name = &quot;myapp&quot;<\/p>\n<p>path = &quot;your_script.py&quot;<\/p>\n<p>[packaging]<\/p>\n<p>type = &quot;standalone&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u8fd0\u884cPyOxidizer<\/li>\n<\/ol>\n<p><p>\u5728\u9879\u76ee\u76ee\u5f55\u4e0b\u8fd0\u884cPyOxidizer\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyoxidizer build<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u521b\u5efa\u4e00\u4e2a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u6253\u5305\u4e2d\u7684\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f9d\u8d56\u7ba1\u7406<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0c\u7ba1\u7406\u597dPython\u5305\u7684\u4f9d\u8d56\u975e\u5e38\u91cd\u8981\u3002\u53ef\u4ee5\u4f7f\u7528<code>requirements.txt<\/code>\u6587\u4ef6\u6216<code>Pipfile<\/code>\u6765\u8bb0\u5f55\u9879\u76ee\u6240\u9700\u7684\u6240\u6709\u4f9d\u8d56\u5305\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u8de8\u5e73\u53f0\u6253\u5305<\/strong><\/li>\n<\/ol>\n<p><p>\u67d0\u4e9b\u5de5\u5177\uff08\u5982PyInstaller\uff09\u652f\u6301\u8de8\u5e73\u53f0\u6253\u5305\uff0c\u4f46\u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\uff0c\u6700\u597d\u5728\u76ee\u6807\u5e73\u53f0\u4e0a\u8fdb\u884c\u6253\u5305\uff0c\u4ee5\u907f\u514d\u5e73\u53f0\u7279\u5b9a\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u6d4b\u8bd5<\/strong><\/li>\n<\/ol>\n<p><p>\u6253\u5305\u5b8c\u6210\u540e\uff0c\u786e\u4fdd\u5bf9\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u8fdb\u884c\u5145\u5206\u7684\u6d4b\u8bd5\uff0c\u4ee5\u786e\u4fdd\u6240\u6709\u529f\u80fd\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5c06Python\u811a\u672c\u5c01\u88c5\u6210\u8f6f\u4ef6\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u7684\u5206\u53d1\u548c\u4f7f\u7528\u4fbf\u6377\u6027\u3002PyInstaller\u662f\u6700\u5e38\u7528\u7684\u5de5\u5177\u4e4b\u4e00\uff0c\u9002\u5408\u5927\u591a\u6570\u7b80\u5355\u7684\u6253\u5305\u9700\u6c42\u3002\u800c\u5bf9\u4e8e\u9700\u8981\u9759\u6001\u94fe\u63a5Python\u89e3\u91ca\u5668\u6216\u8fdb\u884c\u590d\u6742\u5b9a\u5236\u7684\u9879\u76ee\uff0cPyOxidizer\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u7075\u6d3b\u6027\u3002\u901a\u8fc7\u5408\u7406\u9009\u62e9\u5de5\u5177\uff0c\u5e76\u7ed3\u5408\u9879\u76ee\u9700\u6c42\uff0c\u80fd\u591f\u9ad8\u6548\u5730\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u5c01\u88c5\u6210\u8f6f\u4ef6\uff0c\u5e76\u5206\u53d1\u7ed9\u7528\u6237\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06Python\u7a0b\u5e8f\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff1f<\/strong><br \/>\u8981\u5c06Python\u7a0b\u5e8f\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u5982PyInstaller\u3001cx_Freeze\u6216py2exe\u3002PyInstaller\u662f\u6700\u5e38\u7528\u7684\u9009\u62e9\uff0c\u5b83\u80fd\u591f\u5c06Python\u811a\u672c\u53ca\u5176\u4f9d\u8d56\u9879\u6253\u5305\u4e3a\u4e00\u4e2a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002\u5b89\u88c5PyInstaller\u540e\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u5728\u547d\u4ee4\u884c\u8f93\u5165<code>pyinstaller your_script.py<\/code>\u6765\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002\u751f\u6210\u7684\u6587\u4ef6\u901a\u5e38\u4f4d\u4e8edist\u6587\u4ef6\u5939\u4e2d\uff0c\u60a8\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u5b83\u3002<\/p>\n<p><strong>\u5728\u6253\u5305Python\u8f6f\u4ef6\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u4e8b\u9879\uff1f<\/strong><br \/>\u5728\u6253\u5305Python\u8f6f\u4ef6\u65f6\uff0c\u786e\u4fdd\u6240\u6709\u4f9d\u8d56\u5e93\u90fd\u5df2\u6b63\u786e\u5b89\u88c5\u5e76\u5728setup.py\u4e2d\u5217\u51fa\u3002\u6b64\u5916\uff0c\u8003\u8651\u5230\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u7684\u517c\u5bb9\u6027\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u4e3a\u4e0d\u540c\u5e73\u53f0\u5206\u522b\u6253\u5305\u3002\u5982\u679c\u60a8\u7684\u8f6f\u4ef6\u9700\u8981\u8bbf\u95ee\u5916\u90e8\u8d44\u6e90\uff08\u5982\u6570\u636e\u5e93\u6216\u7f51\u7edc\u670d\u52a1\uff09\uff0c\u786e\u4fdd\u5728\u6253\u5305\u65f6\u914d\u7f6e\u597d\u76f8\u5173\u7684\u6743\u9650\u548c\u8fde\u63a5\u8bbe\u7f6e\uff0c\u4ee5\u907f\u514d\u8fd0\u884c\u65f6\u9519\u8bef\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u8f6f\u4ef6\u4e2d\u6dfb\u52a0\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09\uff1f<\/strong><br \/>\u4e3a\u4e86\u5728Python\u8f6f\u4ef6\u4e2d\u6dfb\u52a0\u56fe\u5f62\u7528\u6237\u754c\u9762\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528Tkinter\u3001PyQt\u6216Kivy\u7b49\u5e93\u3002Tkinter\u662fPython\u5185\u7f6e\u7684GUI\u5e93\uff0c\u9002\u5408\u7b80\u5355\u7684\u754c\u9762\u6784\u5efa\u3002PyQt\u548cKivy\u5219\u63d0\u4f9b\u66f4\u5f3a\u5927\u7684\u529f\u80fd\u548c\u7f8e\u89c2\u7684\u754c\u9762\uff0c\u9002\u5408\u5f00\u53d1\u590d\u6742\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u8bbe\u8ba1GUI\u65f6\uff0c\u786e\u4fdd\u7528\u6237\u754c\u9762\u76f4\u89c2\u6613\u7528\uff0c\u80fd\u591f\u63d0\u9ad8\u7528\u6237\u7684\u4f7f\u7528\u4f53\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5c01\u88c5\u6210\u8f6f\u4ef6\uff0c\u5305\u62ec\u4f7f\u7528PyInstaller\u3001cx_Freeze\u3001Py2exe\u3001Py [&hellip;]","protected":false},"author":3,"featured_media":957518,"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\/957515"}],"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=957515"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/957515\/revisions"}],"predecessor-version":[{"id":957520,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/957515\/revisions\/957520"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/957518"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=957515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=957515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=957515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}