{"id":1016638,"date":"2024-12-27T12:18:15","date_gmt":"2024-12-27T04:18:15","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1016638.html"},"modified":"2024-12-27T12:18:17","modified_gmt":"2024-12-27T04:18:17","slug":"%e5%a6%82%e4%bd%95%e5%bd%a2%e6%88%90exe%e6%96%87%e4%bb%b6python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1016638.html","title":{"rendered":"\u5982\u4f55\u5f62\u6210exe\u6587\u4ef6python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25100116\/6c06cb09-5023-4096-bfdf-be4387ccd9a1.webp\" alt=\"\u5982\u4f55\u5f62\u6210exe\u6587\u4ef6python\" \/><\/p>\n<p><p> \u5f00\u5934\u6bb5\u843d\uff1a<\/p>\n<\/p>\n<p><p>\u5f62\u6210exe\u6587\u4ef6Python\u7684\u65b9\u6cd5\u4e3b\u8981\u6709\uff1a<strong>\u4f7f\u7528PyInstaller\u3001\u4f7f\u7528cx_Freeze\u3001\u4f7f\u7528Py2exe\u3001\u624b\u52a8\u6253\u5305<\/strong>\u3002\u5176\u4e2d\uff0c<strong>\u4f7f\u7528PyInstaller<\/strong>\u662f\u6700\u4e3a\u5e38\u7528\u4e14\u7b80\u5355\u7684\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u5e94\u7528\u573a\u666f\u3002PyInstaller\u53ef\u4ee5\u5c06Python\u811a\u672c\u548c\u6240\u6709\u4f9d\u8d56\u9879\u6253\u5305\u6210\u4e00\u4e2a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u65e0\u9700\u5728\u76ee\u6807\u673a\u5668\u4e0a\u5b89\u88c5Python\u73af\u5883\u3002\u53ea\u9700\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c\u7b80\u5355\u7684\u547d\u4ee4\u5373\u53ef\u5b8c\u6210\u6253\u5305\uff0c\u975e\u5e38\u9002\u5408\u5feb\u901f\u90e8\u7f72\u548c\u5206\u53d1Python\u5e94\u7528\u7a0b\u5e8f\u3002PyInstaller\u8fd8\u652f\u6301\u591a\u5e73\u53f0\u6253\u5305\uff0c\u80fd\u591f\u751f\u6210Windows\u3001Linux\u548cMacOS\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u975e\u5e38\u7075\u6d3b\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528PYINSTALLER<\/p>\n<\/p>\n<p><p>PyInstaller\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u6253\u5305\u5de5\u5177\uff0c\u53ef\u4ee5\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u53ca\u5176\u6240\u6709\u4f9d\u8d56\u9879\u6253\u5305\u6210\u4e00\u4e2a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002\u5b83\u652f\u6301\u591a\u5e73\u53f0\uff0c\u5e76\u4e14\u975e\u5e38\u5bb9\u6613\u4f7f\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5PyInstaller<\/strong><\/p>\n<\/p>\n<p><p>\u8981\u4f7f\u7528PyInstaller\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u5b83\u3002\u53ef\u4ee5\u901a\u8fc7pip\u547d\u4ee4\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\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528<code>pyinstaller<\/code>\u547d\u4ee4\u6765\u67e5\u770b\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6253\u5305Python\u811a\u672c<\/strong><\/p>\n<\/p>\n<p><p>\u6253\u5305\u4e00\u4e2aPython\u811a\u672c\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\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\u5c06\u751f\u6210\u4e00\u4e2a<code>dist<\/code>\u76ee\u5f55\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u6253\u5305\u540e\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002PyInstaller\u9ed8\u8ba4\u751f\u6210\u4e00\u4e2a\u76ee\u5f55\u7ed3\u6784\uff0c\u5176\u4e2d\u5305\u62ec\u6240\u6709\u7684\u4f9d\u8d56\u9879\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u751f\u6210\u5355\u4e2a\u53ef\u6267\u884c\u6587\u4ef6<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u5e0c\u671b\u751f\u6210\u4e00\u4e2a\u5355\u72ec\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>--onefile<\/code>\u9009\u9879\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\u5c06\u521b\u5efa\u4e00\u4e2a\u5355\u72ec\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u4fbf\u4e8e\u5206\u53d1\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u81ea\u5b9a\u4e49\u6253\u5305<\/strong><\/p>\n<\/p>\n<p><p>PyInstaller\u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u81ea\u5b9a\u4e49\u9009\u9879\uff0c\u6bd4\u5982\u6dfb\u52a0\u56fe\u6807\u3001\u9690\u85cf\u63a7\u5236\u53f0\u7a97\u53e3\u7b49\u3002\u53ef\u4ee5\u901a\u8fc7\u7f16\u8f91.spec\u6587\u4ef6\u6765\u5b9e\u73b0\u8fd9\u4e9b\u81ea\u5b9a\u4e49\u8bbe\u7f6e\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528CX_FREEZE<\/p>\n<\/p>\n<p><p>cx_Freeze\u662f\u53e6\u4e00\u4e2a\u6d41\u884c\u7684Python\u811a\u672c\u6253\u5305\u5de5\u5177\uff0c\u7c7b\u4f3c\u4e8ePyInstaller\u3002\u5b83\u652f\u6301Python 3\uff0c\u5e76\u4e14\u53ef\u4ee5\u751f\u6210Windows\u548cLinux\u5e73\u53f0\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5cx_Freeze<\/strong><\/p>\n<\/p>\n<p><p>\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<\/li>\n<li>\n<p><strong>\u521b\u5efasetup\u811a\u672c<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528cx_Freeze\u9700\u8981\u7f16\u5199\u4e00\u4e2asetup\u811a\u672c\uff0c\u901a\u5e38\u547d\u540d\u4e3a<code>setup.py<\/code>\u3002\u8fd9\u4e2a\u811a\u672c\u5b9a\u4e49\u4e86\u5982\u4f55\u6253\u5305\u5e94\u7528\u7a0b\u5e8f\u3002<\/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;your_application&quot;,<\/p>\n<p>    version = &quot;1.0&quot;,<\/p>\n<p>    description = &quot;Your application description&quot;,<\/p>\n<p>    executables = [Executable(&quot;your_script.py&quot;)]<\/p>\n<p>)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6253\u5305\u5e94\u7528\u7a0b\u5e8f<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u6253\u5305\u5e94\u7528\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\u5728<code>build<\/code>\u76ee\u5f55\u4e2d\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u81ea\u5b9a\u4e49\u9009\u9879<\/strong><\/p>\n<\/p>\n<p><p>cx_Freeze\u4e5f\u652f\u6301\u591a\u79cd\u81ea\u5b9a\u4e49\u9009\u9879\uff0c\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539setup\u811a\u672c\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528PY2EXE<\/p>\n<\/p>\n<p><p>Py2exe\u662f\u4e13\u95e8\u7528\u4e8e\u5c06Python\u811a\u672c\u8f6c\u6362\u4e3aWindows\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5de5\u5177\u3002\u867d\u7136\u4e0d\u5982PyInstaller\u548ccx_Freeze\u6d41\u884c\uff0c\u4f46\u5bf9\u4e8e\u4e00\u4e9b\u7b80\u5355\u7684\u5e94\u7528\u7a0b\u5e8f\u6765\u8bf4\u4f9d\u7136\u6709\u6548\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5Py2exe<\/strong><\/p>\n<\/p>\n<p><p>Py2exe\u53ef\u4ee5\u901a\u8fc7pip\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install py2exe<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efasetup\u811a\u672c<\/strong><\/p>\n<\/p>\n<p><p>\u548ccx_Freeze\u7c7b\u4f3c\uff0c\u4f7f\u7528Py2exe\u9700\u8981\u7f16\u5199\u4e00\u4e2asetup\u811a\u672c\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<\/li>\n<li>\n<p><strong>\u6253\u5305\u5e94\u7528\u7a0b\u5e8f<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\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\u5728<code>dist<\/code>\u76ee\u5f55\u4e2d\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u624b\u52a8\u6253\u5305<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u4e00\u4e9b\u7279\u6b8a\u9700\u6c42\uff0c\u53ef\u80fd\u9700\u8981\u624b\u52a8\u6253\u5305Python\u5e94\u7528\u7a0b\u5e8f\u3002\u8fd9\u901a\u5e38\u6d89\u53ca\u5c06Python\u89e3\u91ca\u5668\u548c\u6240\u6709\u4f9d\u8d56\u9879\u4e00\u8d77\u6253\u5305\uff0c\u5e76\u7f16\u5199\u4e00\u4e2a\u542f\u52a8\u811a\u672c\u6765\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u51c6\u5907Python\u89e3\u91ca\u5668<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u4e0b\u8f7d\u5e76\u51c6\u5907Python\u89e3\u91ca\u5668\u3002\u53ef\u4ee5\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u9002\u5408\u76ee\u6807\u5e73\u53f0\u7684\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6536\u96c6\u4f9d\u8d56\u9879<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u5de5\u5177\u5982pipreqs\u6216pip freeze\u6765\u751f\u6210requirements.txt\u6587\u4ef6\uff0c\u7136\u540e\u5b89\u88c5\u6240\u6709\u4f9d\u8d56\u9879\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f16\u5199\u542f\u52a8\u811a\u672c<\/strong><\/p>\n<\/p>\n<p><p>\u7f16\u5199\u4e00\u4e2a\u542f\u52a8\u811a\u672c\u6765\u8c03\u7528Python\u89e3\u91ca\u5668\u5e76\u8fd0\u884c\u4e3b\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efa\u538b\u7f29\u5305<\/strong><\/p>\n<\/p>\n<p><p>\u5c06Python\u89e3\u91ca\u5668\u3001\u4f9d\u8d56\u9879\u548c\u542f\u52a8\u811a\u672c\u6253\u5305\u6210\u4e00\u4e2a\u538b\u7f29\u5305\uff0c\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u59827-Zip\u6216WinRAR\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u867d\u7136\u7075\u6d3b\uff0c\u4f46\u53ef\u80fd\u4f1a\u6bd4\u8f83\u590d\u6742\uff0c\u4e0d\u9002\u5408\u5927\u591a\u6570\u7528\u6237\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177<\/p>\n<\/p>\n<p><p>\u6839\u636e\u9879\u76ee\u7684\u9700\u6c42\u548c\u590d\u6742\u5ea6\uff0c\u9009\u62e9\u5408\u9002\u7684\u6253\u5305\u5de5\u5177\u975e\u5e38\u91cd\u8981\u3002\u5982\u679c\u9879\u76ee\u8f83\u5c0f\u4e14\u7b80\u5355\uff0cPyInstaller\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u9009\u62e9\uff0c\u56e0\u4e3a\u5b83\u4f7f\u7528\u7b80\u5355\u4e14\u529f\u80fd\u5f3a\u5927\u3002\u5982\u679c\u9700\u8981\u5bf9\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u8fdb\u884c\u66f4\u591a\u7684\u81ea\u5b9a\u4e49\uff0ccx_Freeze\u53ef\u80fd\u66f4\u5408\u9002\u3002\u800c\u5bf9\u4e8eWindows\u5e73\u53f0\u7684\u7b80\u5355\u5e94\u7528\u7a0b\u5e8f\uff0cPy2exe\u4e5f\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002\u624b\u52a8\u6253\u5305\u9002\u7528\u4e8e\u9700\u8981\u6700\u5927\u7a0b\u5ea6\u7684\u81ea\u5b9a\u4e49\u548c\u63a7\u5236\u7684\u573a\u666f\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\u7684exe\u6587\u4ef6\uff1f<\/strong><br \/>\u8981\u5c06Python\u7a0b\u5e8f\u6253\u5305\u6210exe\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u5982PyInstaller\u3001cx_Freeze\u6216py2exe\u3002\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u5c06Python\u811a\u672c\u53ca\u5176\u4f9d\u8d56\u9879\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002\u4ee5PyInstaller\u4e3a\u4f8b\uff0c\u60a8\u53ea\u9700\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c<code>pyinstaller your_script.py<\/code>\uff0c\u7cfb\u7edf\u4f1a\u751f\u6210\u4e00\u4e2adist\u6587\u4ef6\u5939\uff0c\u91cc\u9762\u5305\u542b\u751f\u6210\u7684exe\u6587\u4ef6\u3002\u786e\u4fdd\u5728\u6253\u5305\u524d\u5b89\u88c5\u6240\u9700\u7684\u5e93\uff0c\u5e76\u68c0\u67e5\u4f60\u7684Python\u73af\u5883\u3002<\/p>\n<p><strong>\u5728\u6253\u5305\u4e3aexe\u6587\u4ef6\u65f6\uff0c\u6709\u54ea\u4e9b\u5e38\u89c1\u7684\u95ee\u9898\u9700\u8981\u6ce8\u610f\uff1f<\/strong><br \/>\u5728\u5c06Python\u7a0b\u5e8f\u8f6c\u6362\u4e3aexe\u6587\u4ef6\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\u3002\u4f8b\u5982\uff0c\u7f3a\u5931\u4f9d\u8d56\u9879\u53ef\u80fd\u5bfc\u81f4exe\u6587\u4ef6\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\u3002\u786e\u4fdd\u5728\u6253\u5305\u524d\u5b89\u88c5\u6240\u6709\u5fc5\u8981\u7684\u5e93\u3002\u6b64\u5916\uff0c\u67d0\u4e9b\u7b2c\u4e09\u65b9\u5e93\u53ef\u80fd\u9700\u8981\u989d\u5916\u7684\u914d\u7f6e\uff0c\u6bd4\u5982\u6307\u5b9a\u6570\u636e\u6587\u4ef6\u6216\u8d44\u6e90\u3002\u5efa\u8bae\u5728\u6d4b\u8bd5exe\u6587\u4ef6\u65f6\uff0c\u4f7f\u7528\u4e0d\u540c\u7684\u73af\u5883\u9a8c\u8bc1\u5176\u517c\u5bb9\u6027\u3002<\/p>\n<p><strong>\u751f\u6210\u7684exe\u6587\u4ef6\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u80fd\u5426\u8fd0\u884c\uff1f<\/strong><br \/>\u751f\u6210\u7684exe\u6587\u4ef6\u901a\u5e38\u53ea\u80fd\u5728\u4e0e\u5176\u521b\u5efa\u65f6\u76f8\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884c\u3002\u4f8b\u5982\uff0cWindows\u5e73\u53f0\u4e0a\u521b\u5efa\u7684exe\u6587\u4ef6\u65e0\u6cd5\u5728Linux\u6216MacOS\u4e0a\u8fd0\u884c\u3002\u5982\u679c\u9700\u8981\u8de8\u5e73\u53f0\u517c\u5bb9\u6027\uff0c\u5efa\u8bae\u5728\u6bcf\u4e2a\u76ee\u6807\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5206\u522b\u6253\u5305\u4f60\u7684Python\u811a\u672c\uff0c\u6216\u8003\u8651\u4f7f\u7528\u50cfDocker\u8fd9\u6837\u7684\u89e3\u51b3\u65b9\u6848\u6765\u521b\u5efa\u53ef\u79fb\u690d\u7684\u73af\u5883\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5f00\u5934\u6bb5\u843d\uff1a \u5f62\u6210exe\u6587\u4ef6Python\u7684\u65b9\u6cd5\u4e3b\u8981\u6709\uff1a\u4f7f\u7528PyInstaller\u3001\u4f7f\u7528cx_Freeze\u3001\u4f7f\u7528P [&hellip;]","protected":false},"author":3,"featured_media":1016647,"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\/1016638"}],"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=1016638"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1016638\/revisions"}],"predecessor-version":[{"id":1016649,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1016638\/revisions\/1016649"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1016647"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1016638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1016638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1016638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}