{"id":995451,"date":"2024-12-27T09:04:58","date_gmt":"2024-12-27T01:04:58","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/995451.html"},"modified":"2024-12-27T09:05:00","modified_gmt":"2024-12-27T01:05:00","slug":"%e5%a6%82%e4%bd%95%e5%8c%85%e8%a3%85python%e7%9a%84%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/995451.html","title":{"rendered":"\u5982\u4f55\u5305\u88c5python\u7684\u7a0b\u5e8f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25072045\/448ddb9e-ac36-4ffa-ba1f-53bd451a7d91.webp\" alt=\"\u5982\u4f55\u5305\u88c5python\u7684\u7a0b\u5e8f\" \/><\/p>\n<p><p> <strong>\u8981\u5305\u88c5Python\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u4f7f\u7528pyinstaller\u3001cx_Freeze\u3001py2exe\u7b49\u5de5\u5177\uff0c\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u5c06Python\u7a0b\u5e8f\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3001\u63d0\u9ad8\u7a0b\u5e8f\u7684\u517c\u5bb9\u6027\u3001\u7b80\u5316\u7a0b\u5e8f\u7684\u90e8\u7f72\u6d41\u7a0b\u3002<\/strong>\u4e3a\u4e86\u66f4\u597d\u7406\u89e3\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8pyinstaller\u7684\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0cpyinstaller\u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u4e14\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u53ca\u5176\u6240\u6709\u4f9d\u8d56\u9879\u6253\u5305\u5230\u4e00\u4e2a\u5355\u72ec\u7684\u53ef\u6267\u884c\u6587\u4ef6\u4e2d\uff0c\u800c\u4e0d\u9700\u8981\u5728\u76ee\u6807\u673a\u5668\u4e0a\u5b89\u88c5Python\u89e3\u91ca\u5668\u3002\u8fd9\u4e2a\u5de5\u5177\u652f\u6301Windows\u3001Mac\u548cLinux\u7cfb\u7edf\uff0c\u662fPython\u7a0b\u5e8f\u6253\u5305\u7684\u9996\u9009\u5de5\u5177\u4e4b\u4e00\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001PYINSTALLER\u7684\u5b89\u88c5\u4e0e\u57fa\u672c\u4f7f\u7528<\/p>\n<\/p>\n<p><p>Pyinstaller\u7684\u5b89\u88c5\u975e\u5e38\u7b80\u5355\uff0c\u53ef\u4ee5\u901a\u8fc7pip\u547d\u4ee4\u76f4\u63a5\u5b89\u88c5\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\u5b8c\u6210\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pyinstaller<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u4f7f\u7528pyinstaller\u6765\u6253\u5305Python\u7a0b\u5e8f\u3002\u6700\u7b80\u5355\u7684\u547d\u4ee4\u662f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6761\u547d\u4ee4\u4f1a\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a<code>dist<\/code>\u76ee\u5f55\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u6253\u5305\u597d\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cpyinstaller\u4f1a\u751f\u6210\u4e00\u4e2a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u4ee5\u53ca\u76f8\u5173\u7684\u4f9d\u8d56\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u751f\u6210\u5355\u4e2a\u53ef\u6267\u884c\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u6211\u4eec\u5e0c\u671b\u751f\u6210\u4e00\u4e2a\u5355\u72ec\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u591a\u4e2a\u6587\u4ef6\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7<code>--onefile<\/code>\u9009\u9879\u5b9e\u73b0\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\u4f1a\u5728<code>dist<\/code>\u76ee\u5f55\u4e0b\u751f\u6210\u4e00\u4e2a\u5355\u72ec\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u4fbf\u4e8e\u5206\u53d1\u548c\u90e8\u7f72\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u9690\u85cf\u63a7\u5236\u53f0\u7a97\u53e3<\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u7684\u7a0b\u5e8f\u662f\u4e00\u4e2a\u56fe\u5f62\u754c\u9762\u5e94\u7528\u7a0b\u5e8f\uff08GUI\uff09\uff0c\u4f60\u53ef\u80fd\u4e0d\u5e0c\u671b\u5728\u8fd0\u884c\u65f6\u51fa\u73b0\u63a7\u5236\u53f0\u7a97\u53e3\u3002\u53ef\u4ee5\u4f7f\u7528<code>--noconsole<\/code>\u9009\u9879\u9690\u85cf\u63a7\u5236\u53f0\u7a97\u53e3\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --noconsole your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u5728\u8fd0\u884c\u65f6\u4e0d\u4f1a\u663e\u793a\u63a7\u5236\u53f0\u7a97\u53e3\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u6dfb\u52a0\u56fe\u6807\u4e0e\u5176\u4ed6\u8d44\u6e90<\/p>\n<\/p>\n<p><p>\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0c\u4f60\u53ef\u80fd\u5e0c\u671b\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\u6dfb\u52a0\u4e00\u4e2a\u56fe\u6807\uff0c\u6216\u8005\u6253\u5305\u4e00\u4e9b\u989d\u5916\u7684\u8d44\u6e90\u6587\u4ef6\uff08\u4f8b\u5982\u56fe\u7247\u3001\u6570\u636e\u6587\u4ef6\uff09\u3002\u53ef\u4ee5\u4f7f\u7528<code>--icon<\/code>\u9009\u9879\u6765\u6307\u5b9a\u56fe\u6807\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --icon=your_icon.ico your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8981\u6253\u5305\u989d\u5916\u7684\u8d44\u6e90\u6587\u4ef6\uff0c\u53ef\u4ee5\u5728spec\u6587\u4ef6\u4e2d\u8fdb\u884c\u914d\u7f6e\u3002spec\u6587\u4ef6\u662fpyinstaller\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u901a\u5e38\u5728\u7b2c\u4e00\u6b21\u8fd0\u884cpyinstaller\u65f6\u81ea\u52a8\u751f\u6210\u3002\u6253\u5f00spec\u6587\u4ef6\uff0c\u4f60\u53ef\u4ee5\u5728<code>datas<\/code>\u4e2d\u6dfb\u52a0\u9700\u8981\u6253\u5305\u7684\u8d44\u6e90\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">a = Analysis([&#39;your_script.py&#39;],<\/p>\n<p>             pathex=[&#39;\/path\/to\/your\/project&#39;],<\/p>\n<p>             binaries=[],<\/p>\n<p>             datas=[(&#39;path\/to\/resource&#39;, &#39;resource&#39;)],<\/p>\n<p>             ...<\/p>\n<p>            )<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u5904\u7406\u7b2c\u4e09\u65b9\u5e93\u548c\u6a21\u5757<\/p>\n<\/p>\n<p><p>\u5728\u6253\u5305Python\u7a0b\u5e8f\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u7b2c\u4e09\u65b9\u5e93\u6216\u6a21\u5757\u672a\u6b63\u786e\u6253\u5305\u7684\u95ee\u9898\u3002pyinstaller\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u4f1a\u81ea\u52a8\u68c0\u6d4b\u548c\u6253\u5305\u7a0b\u5e8f\u7684\u4f9d\u8d56\u9879\uff0c\u4f46\u6709\u65f6\u9700\u8981\u624b\u52a8\u6307\u5b9a\u67d0\u4e9b\u5e93\u3002\u8fd9\u53ef\u4ee5\u5728spec\u6587\u4ef6\u4e2d\u901a\u8fc7<code>hiddenimports<\/code>\u53c2\u6570\u6765\u89e3\u51b3\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">a = Analysis([&#39;your_script.py&#39;],<\/p>\n<p>             pathex=[&#39;\/path\/to\/your\/project&#39;],<\/p>\n<p>             binaries=[],<\/p>\n<p>             datas=[],<\/p>\n<p>             hiddenimports=[&#39;module1&#39;, &#39;module2&#39;],<\/p>\n<p>             ...<\/p>\n<p>            )<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u516d\u3001\u4f18\u5316\u548c\u8c03\u8bd5\u6253\u5305\u8fc7\u7a0b<\/p>\n<\/p>\n<p><p>\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0cpyinstaller\u4f1a\u751f\u6210\u5927\u91cf\u7684\u4e34\u65f6\u6587\u4ef6\u548c\u65e5\u5fd7\u6587\u4ef6\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u6e05\u7406\u8fd9\u4e9b\u6587\u4ef6\u6765\u4f18\u5316\u6253\u5305\u8fc7\u7a0b\u3002\u4f7f\u7528<code>--clean<\/code>\u9009\u9879\u53ef\u4ee5\u5220\u9664\u65e7\u7684\u4e34\u65f6\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --clean your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u9519\u8bef\uff0c\u53ef\u4ee5\u4f7f\u7528<code>--debug<\/code>\u9009\u9879\u6765\u542f\u7528\u8c03\u8bd5\u6a21\u5f0f\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u5b9a\u4f4d\u95ee\u9898\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --debug your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e03\u3001\u8de8\u5e73\u53f0\u6253\u5305<\/p>\n<\/p>\n<p><p>\u867d\u7136pyinstaller\u652f\u6301\u591a\u5e73\u53f0\uff0c\u4f46\u5728\u4e0d\u540c\u5e73\u53f0\u4e0a\u6253\u5305\u7a0b\u5e8f\u65f6\uff0c\u901a\u5e38\u9700\u8981\u5728\u76f8\u5e94\u7684\u5e73\u53f0\u4e0a\u8fd0\u884c\u6253\u5305\u547d\u4ee4\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u5982\u679c\u4f60\u60f3\u8981\u6253\u5305\u4e00\u4e2aWindows\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u6700\u597d\u5728Windows\u7cfb\u7edf\u4e0a\u8fd0\u884cpyinstaller\u3002\u540c\u6837\u5730\uff0c\u5982\u679c\u8981\u6253\u5305Linux\u6216MacOS\u5e94\u7528\u7a0b\u5e8f\uff0c\u4e5f\u5e94\u8be5\u5728\u76f8\u5e94\u7684\u7cfb\u7edf\u4e0a\u8fdb\u884c\u6253\u5305\u3002<\/p>\n<\/p>\n<p><p>\u516b\u3001\u5176\u4ed6\u6253\u5305\u5de5\u5177<\/p>\n<\/p>\n<p><p>\u9664\u4e86pyinstaller\u4e4b\u5916\uff0c\u8fd8\u6709\u5176\u4ed6\u4e00\u4e9b\u5e38\u7528\u7684Python\u6253\u5305\u5de5\u5177\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>cx_Freeze<\/strong>\uff1a\u9002\u7528\u4e8e\u6253\u5305Python\u5e94\u7528\u7a0b\u5e8f\u4e3aWindows\u548cLinux\u53ef\u6267\u884c\u6587\u4ef6\u3002cx_Freeze\u4e0epyinstaller\u7c7b\u4f3c\uff0c\u4f46\u5728\u5904\u7406\u67d0\u4e9b\u7279\u5b9a\u7684\u4f9d\u8d56\u9879\u65f6\u53ef\u80fd\u8868\u73b0\u66f4\u597d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>py2exe<\/strong>\uff1a\u4e13\u95e8\u7528\u4e8e\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u4e3aWindows\u53ef\u6267\u884c\u6587\u4ef6\u3002\u867d\u7136py2exe\u529f\u80fd\u5f3a\u5927\uff0c\u4f46\u5176\u793e\u533a\u652f\u6301\u548c\u66f4\u65b0\u9891\u7387\u4e0d\u5982pyinstaller\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Nuitka<\/strong>\uff1a\u4e0d\u4ec5\u662f\u4e00\u4e2a\u6253\u5305\u5de5\u5177\uff0c\u8fd8\u662f\u4e00\u4e2aPython\u5230C\u7684\u7f16\u8bd1\u5668\uff0c\u53ef\u4ee5\u5c06Python\u4ee3\u7801\u7f16\u8bd1\u4e3aC\u4ee3\u7801\uff0c\u7136\u540e\u518d\u6253\u5305\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\u3002Nuitka\u5728\u6027\u80fd\u4f18\u5316\u65b9\u9762\u8868\u73b0\u4f18\u5f02\uff0c\u4f46\u6253\u5305\u8fc7\u7a0b\u76f8\u5bf9\u590d\u6742\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e5d\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u6253\u5305Python\u7a0b\u5e8f\u662f\u4e00\u4e2a\u590d\u6742\u4f46\u5fc5\u8981\u7684\u8fc7\u7a0b\uff0c\u5c24\u5176\u662f\u5f53\u4f60\u5e0c\u671b\u5c06\u7a0b\u5e8f\u5206\u53d1\u7ed9\u4e0d\u5177\u5907Python\u73af\u5883\u7684\u7528\u6237\u65f6\u3002\u901a\u8fc7\u4f7f\u7528pyinstaller\u7b49\u5de5\u5177\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06Python\u7a0b\u5e8f\u53ca\u5176\u4f9d\u8d56\u9879\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u63d0\u9ad8\u7a0b\u5e8f\u7684\u517c\u5bb9\u6027\u548c\u6613\u7528\u6027\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6839\u636e\u9879\u76ee\u7684\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u548c\u914d\u7f6e\uff0c\u53ef\u4ee5\u5927\u5927\u7b80\u5316\u7a0b\u5e8f\u7684\u90e8\u7f72\u6d41\u7a0b\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06Python\u7a0b\u5e8f\u6253\u5305\u4ee5\u4fbf\u53d1\u5e03\u548c\u5206\u53d1\uff1f<\/strong><br \/>\u8981\u5c06Python\u7a0b\u5e8f\u6253\u5305\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u5982PyInstaller\u3001cx_Freeze\u6216py2exe\u3002\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u5c06\u60a8\u7684\u811a\u672c\u548c\u6240\u6709\u4f9d\u8d56\u9879\u6253\u5305\u6210\u4e00\u4e2a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u4f7f\u5f97\u7528\u6237\u65e0\u9700\u5b89\u88c5Python\u73af\u5883\u5373\u53ef\u8fd0\u884c\u7a0b\u5e8f\u3002\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u65f6\uff0c\u9700\u8981\u6839\u636e\u60a8\u7684\u9879\u76ee\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u914d\u7f6e\u9009\u9879\uff0c\u5e76\u6d4b\u8bd5\u751f\u6210\u7684\u6587\u4ef6\u4ee5\u786e\u4fdd\u5176\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n<p><strong>\u6253\u5305Python\u7a0b\u5e8f\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u4f9d\u8d56\u95ee\u9898\uff1f<\/strong><br \/>\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0c\u786e\u4fdd\u60a8\u5df2\u5c06\u6240\u6709\u5fc5\u8981\u7684\u4f9d\u8d56\u9879\u5217\u5165\u9879\u76ee\u7684requirements.txt\u6587\u4ef6\u4e2d\u3002\u6253\u5305\u5de5\u5177\u901a\u5e38\u4f1a\u81ea\u52a8\u8bc6\u522b\u8fd9\u4e9b\u4f9d\u8d56\u9879\uff0c\u4f46\u6709\u65f6\u53ef\u80fd\u4f1a\u9057\u6f0f\u67d0\u4e9b\u5e93\u3002\u6b64\u5916\uff0c\u60a8\u8fd8\u5e94\u8003\u8651\u4f7f\u7528\u865a\u62df\u73af\u5883\u6765\u9694\u79bb\u9879\u76ee\u4f9d\u8d56\uff0c\u786e\u4fdd\u6253\u5305\u7684\u7a0b\u5e8f\u5728\u4e0d\u540c\u73af\u5883\u4e0b\u7684\u517c\u5bb9\u6027\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u6253\u5305\u540e\u7684\u7a0b\u5e8f\u4e2d\u5305\u542b\u989d\u5916\u7684\u8d44\u6e90\u6587\u4ef6\uff1f<\/strong><br \/>\u5982\u679c\u60a8\u7684Python\u7a0b\u5e8f\u9700\u8981\u989d\u5916\u7684\u8d44\u6e90\u6587\u4ef6\uff08\u5982\u56fe\u50cf\u3001\u914d\u7f6e\u6587\u4ef6\u6216\u6570\u636e\u5e93\uff09\uff0c\u60a8\u53ef\u4ee5\u5728\u6253\u5305\u914d\u7f6e\u4e2d\u6307\u5b9a\u8fd9\u4e9b\u6587\u4ef6\u3002\u5728\u4f7f\u7528PyInstaller\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u201c&#8211;add-data\u201d\u53c2\u6570\u6765\u5305\u542b\u8fd9\u4e9b\u989d\u5916\u8d44\u6e90\u3002\u786e\u4fdd\u5728\u4ee3\u7801\u4e2d\u6b63\u786e\u5f15\u7528\u8fd9\u4e9b\u8d44\u6e90\uff0c\u4ee5\u4fbf\u5728\u6253\u5305\u540e\u7a0b\u5e8f\u4ecd\u80fd\u6b63\u5e38\u627e\u5230\u5b83\u4eec\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5305\u88c5Python\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u4f7f\u7528pyinstaller\u3001cx_Freeze\u3001py2exe\u7b49\u5de5\u5177\uff0c\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u5c06 [&hellip;]","protected":false},"author":3,"featured_media":995459,"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\/995451"}],"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=995451"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/995451\/revisions"}],"predecessor-version":[{"id":995460,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/995451\/revisions\/995460"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/995459"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=995451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=995451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=995451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}