{"id":924896,"date":"2024-12-26T15:21:34","date_gmt":"2024-12-26T07:21:34","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/924896.html"},"modified":"2024-12-26T15:21:36","modified_gmt":"2024-12-26T07:21:36","slug":"%e5%a6%82%e4%bd%95%e6%89%93%e5%8c%85python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/924896.html","title":{"rendered":"\u5982\u4f55\u6253\u5305python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24212324\/8ffd93ee-4eed-42b0-a796-42811016f15d.webp\" alt=\"\u5982\u4f55\u6253\u5305python\" \/><\/p>\n<p><p> <strong>\u8981\u6253\u5305Python\u5e94\u7528\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u5982PyInstaller\u3001cx_Freeze\u548cpy2exe\u3002\u9009\u62e9\u5408\u9002\u7684\u6253\u5305\u5de5\u5177\u3001\u786e\u4fdd\u6253\u5305\u7684\u5e94\u7528\u7a0b\u5e8f\u5728\u76ee\u6807\u5e73\u53f0\u4e0a\u8fd0\u884c\u3001\u4f7f\u7528\u865a\u62df\u73af\u5883\u4ee5\u786e\u4fdd\u4f9d\u8d56\u7684\u4e00\u81f4\u6027\u3001\u8fdb\u884c\u5145\u5206\u6d4b\u8bd5\u662f\u6210\u529f\u6253\u5305Python\u5e94\u7528\u7684\u5173\u952e\u3002<\/strong>\u9009\u62e9\u5408\u9002\u7684\u6253\u5305\u5de5\u5177\u662f\u6253\u5305Python\u5e94\u7528\u7a0b\u5e8f\u7684\u7b2c\u4e00\u6b65\u3002\u4e0d\u540c\u7684\u5de5\u5177\u6709\u4e0d\u540c\u7684\u7279\u70b9\u548c\u9002\u7528\u573a\u666f\uff0c\u4f8b\u5982\uff0cPyInstaller\u652f\u6301\u591a\u5e73\u53f0\u6253\u5305\uff0c\u800ccx_Freeze\u5bf9Windows\u7684\u652f\u6301\u8f83\u597d\u3002\u6839\u636e\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u9700\u6c42\u548c\u76ee\u6807\u5e73\u53f0\u6765\u9009\u62e9\u6700\u5408\u9002\u7684\u5de5\u5177\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u9009\u62e9\u5408\u9002\u7684\u6253\u5305\u5de5\u5177<\/p>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u6253\u5305\u5de5\u5177\u65f6\uff0c\u9700\u8981\u8003\u8651\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u5177\u4f53\u9700\u6c42\u548c\u76ee\u6807\u5e73\u53f0\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u6253\u5305\u5de5\u5177\u53ca\u5176\u7279\u70b9\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>PyInstaller<\/strong>\uff1aPyInstaller\u662f\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684Python\u5e94\u7528\u6253\u5305\u5de5\u5177\u3002\u5b83\u652f\u6301Windows\u3001macOS\u548cLinux\u7b49\u64cd\u4f5c\u7cfb\u7edf\uff0c\u80fd\u591f\u5c06Python\u7a0b\u5e8f\u6253\u5305\u4e3a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002PyInstaller\u53ef\u4ee5\u81ea\u52a8\u5206\u6790Python\u4ee3\u7801\u7684\u4f9d\u8d56\u5173\u7cfb\uff0c\u5e76\u5c06\u6240\u6709\u9700\u8981\u7684\u5e93\u6587\u4ef6\u4e00\u8d77\u6253\u5305\uff0c\u4f7f\u5f97\u6700\u7ec8\u7684\u53ef\u6267\u884c\u6587\u4ef6\u53ef\u4ee5\u5728\u6ca1\u6709Python\u73af\u5883\u7684\u7cfb\u7edf\u4e0a\u8fd0\u884c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>cx_Freeze<\/strong>\uff1acx_Freeze\u662f\u53e6\u4e00\u4e2a\u5e38\u7528\u7684Python\u6253\u5305\u5de5\u5177\u3002\u5b83\u652f\u6301Windows\u548cLinux\uff0c\u80fd\u591f\u5c06Python\u7a0b\u5e8f\u6253\u5305\u4e3a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002cx_Freeze\u7684\u4f18\u70b9\u662f\u652f\u6301Python\u7684\u591a\u4e2a\u7248\u672c\uff0c\u5305\u62ecPython 3.x\uff0c\u5e76\u4e14\u53ef\u4ee5\u751f\u6210\u9002\u7528\u4e8e\u4e0d\u540c\u5e73\u53f0\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>py2exe<\/strong>\uff1apy2exe\u662f\u4e00\u4e2a\u4e13\u95e8\u7528\u4e8e\u5c06Python\u7a0b\u5e8f\u6253\u5305\u4e3aWindows\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5de5\u5177\u3002\u5b83\u53ea\u652f\u6301Windows\u5e73\u53f0\uff0c\u9002\u7528\u4e8e\u9700\u8981\u5c06Python\u7a0b\u5e8f\u90e8\u7f72\u5230Windows\u7cfb\u7edf\u7684\u5f00\u53d1\u8005\u3002py2exe\u53ef\u4ee5\u5c06Python\u811a\u672c\u548c\u4f9d\u8d56\u5e93\u6253\u5305\u4e3a\u4e00\u4e2a\u72ec\u7acb\u7684.exe\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u9009\u62e9\u5de5\u5177\u65f6\uff0c\u9700\u8981\u8003\u8651\u76ee\u6807\u64cd\u4f5c\u7cfb\u7edf\u3001Python\u7248\u672c\u3001\u662f\u5426\u9700\u8981\u8de8\u5e73\u53f0\u652f\u6301\u7b49\u56e0\u7d20\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u786e\u4fdd\u6253\u5305\u7684\u5e94\u7528\u7a0b\u5e8f\u5728\u76ee\u6807\u5e73\u53f0\u4e0a\u8fd0\u884c<\/p>\n<\/p>\n<p><p>\u5728\u6253\u5305Python\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u9700\u8981\u786e\u4fdd\u6253\u5305\u540e\u7684\u5e94\u7528\u7a0b\u5e8f\u80fd\u591f\u5728\u76ee\u6807\u5e73\u53f0\u4e0a\u6b63\u5e38\u8fd0\u884c\u3002\u8fd9\u6d89\u53ca\u5230\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6d4b\u8bd5\u76ee\u6807\u5e73\u53f0<\/strong>\uff1a\u5728\u6253\u5305\u4e4b\u524d\uff0c\u786e\u4fdd\u5728\u76ee\u6807\u5e73\u53f0\u4e0a\u6d4b\u8bd5\u5e94\u7528\u7a0b\u5e8f\u7684\u529f\u80fd\u548c\u6027\u80fd\u3002\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u53ef\u80fd\u4f1a\u6709\u4e0d\u540c\u7684\u4f9d\u8d56\u5e93\u6216\u914d\u7f6e\u8981\u6c42\uff0c\u56e0\u6b64\u5728\u6253\u5305\u4e4b\u524d\u8fdb\u884c\u5145\u5206\u7684\u6d4b\u8bd5\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9009\u62e9\u5408\u9002\u7684Python\u7248\u672c<\/strong>\uff1a\u5728\u6253\u5305\u65f6\u9009\u62e9\u5408\u9002\u7684Python\u7248\u672c\uff0c\u786e\u4fdd\u76ee\u6807\u5e73\u53f0\u4e0a\u652f\u6301\u8be5\u7248\u672c\u3002\u67d0\u4e9bPython\u5e93\u53ef\u80fd\u5728\u4e0d\u540c\u7248\u672c\u4e4b\u95f4\u5b58\u5728\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u56e0\u6b64\u5728\u9009\u62e9Python\u7248\u672c\u65f6\u9700\u8981\u8c28\u614e\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5904\u7406\u5e73\u53f0\u7279\u5b9a\u7684\u4f9d\u8d56<\/strong>\uff1a\u67d0\u4e9bPython\u5e93\u53ef\u80fd\u4f9d\u8d56\u4e8e\u7279\u5b9a\u5e73\u53f0\u7684\u7cfb\u7edf\u5e93\u6216\u914d\u7f6e\u3002\u4f8b\u5982\uff0c\u56fe\u5f62\u754c\u9762\u5e93\u53ef\u80fd\u9700\u8981\u7279\u5b9a\u7684\u56fe\u5f62\u9a71\u52a8\u7a0b\u5e8f\u652f\u6301\u3002\u5728\u6253\u5305\u65f6\uff0c\u9700\u8981\u786e\u4fdd\u8fd9\u4e9b\u4f9d\u8d56\u5e93\u5728\u76ee\u6807\u5e73\u53f0\u4e0a\u53ef\u7528\uff0c\u5e76\u6b63\u786e\u914d\u7f6e\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528\u865a\u62df\u73af\u5883\u4ee5\u786e\u4fdd\u4f9d\u8d56\u7684\u4e00\u81f4\u6027<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u865a\u62df\u73af\u5883\u662f\u786e\u4fddPython\u5e94\u7528\u7a0b\u5e8f\u4f9d\u8d56\u4e00\u81f4\u6027\u7684\u6709\u6548\u65b9\u5f0f\u3002\u865a\u62df\u73af\u5883\u53ef\u4ee5\u9694\u79bb\u4e0d\u540c\u9879\u76ee\u7684\u4f9d\u8d56\u5e93\uff0c\u907f\u514d\u5e93\u7248\u672c\u51b2\u7a81\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528\u865a\u62df\u73af\u5883\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efa\u865a\u62df\u73af\u5883<\/strong>\uff1a\u4f7f\u7528<code>venv<\/code>\u6216<code>virtualenv<\/code>\u5de5\u5177\u521b\u5efa\u865a\u62df\u73af\u5883\u3002\u5728\u9879\u76ee\u76ee\u5f55\u4e0b\u6267\u884c\u547d\u4ee4<code>python -m venv env<\/code>\u6216<code>virtualenv env<\/code>\uff0c\u5176\u4e2d<code>env<\/code>\u662f\u865a\u62df\u73af\u5883\u7684\u540d\u79f0\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/strong>\uff1a\u5728\u521b\u5efa\u865a\u62df\u73af\u5883\u540e\uff0c\u9700\u8981\u6fc0\u6d3b\u5b83\u3002\u5728Windows\u4e0a\u6267\u884c<code>env\\Scripts\\activate<\/code>\uff0c\u5728macOS\u548cLinux\u4e0a\u6267\u884c<code>source env\/bin\/activate<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5\u4f9d\u8d56\u5e93<\/strong>\uff1a\u5728\u865a\u62df\u73af\u5883\u4e2d\uff0c\u4f7f\u7528<code>pip<\/code>\u5b89\u88c5\u5e94\u7528\u7a0b\u5e8f\u6240\u9700\u7684\u4f9d\u8d56\u5e93\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u6240\u6709\u4f9d\u8d56\u5e93\u7684\u7248\u672c\u4e0e\u5f00\u53d1\u73af\u5883\u4e00\u81f4\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u751f\u6210\u4f9d\u8d56\u5217\u8868<\/strong>\uff1a\u4f7f\u7528<code>pip freeze &gt; requirements.txt<\/code>\u547d\u4ee4\u751f\u6210\u4f9d\u8d56\u5217\u8868\u6587\u4ef6<code>requirements.txt<\/code>\u3002\u8be5\u6587\u4ef6\u8bb0\u5f55\u4e86\u6240\u6709\u4f9d\u8d56\u5e93\u53ca\u5176\u7248\u672c\uff0c\u4fbf\u4e8e\u5728\u5176\u4ed6\u73af\u5883\u4e2d\u91cd\u65b0\u5b89\u88c5\u76f8\u540c\u7684\u4f9d\u8d56\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u8fdb\u884c\u5145\u5206\u6d4b\u8bd5<\/p>\n<\/p>\n<p><p>\u6253\u5305\u5b8c\u6210\u540e\uff0c\u5bf9\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u8fdb\u884c\u5145\u5206\u6d4b\u8bd5\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u6d4b\u8bd5\u53ef\u4ee5\u5e2e\u52a9\u53d1\u73b0\u6f5c\u5728\u7684\u95ee\u9898\uff0c\u5e76\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u5728\u4e0d\u540c\u73af\u5883\u4e0b\u7684\u7a33\u5b9a\u6027\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u6d4b\u8bd5\u5efa\u8bae\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u529f\u80fd\u6d4b\u8bd5<\/strong>\uff1a\u6d4b\u8bd5\u5e94\u7528\u7a0b\u5e8f\u7684\u6240\u6709\u529f\u80fd\uff0c\u786e\u4fdd\u5176\u5728\u6253\u5305\u540e\u6b63\u5e38\u5de5\u4f5c\u3002\u91cd\u70b9\u6d4b\u8bd5\u4e0e\u5916\u90e8\u5e93\u6216\u670d\u52a1\u7684\u4ea4\u4e92\uff0c\u4ee5\u786e\u4fdd\u4f9d\u8d56\u5e93\u6253\u5305\u6b63\u786e\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6027\u80fd\u6d4b\u8bd5<\/strong>\uff1a\u6d4b\u8bd5\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\uff0c\u786e\u4fdd\u5176\u5728\u76ee\u6807\u5e73\u53f0\u4e0a\u8fd0\u884c\u987a\u7545\u3002\u6ce8\u610f\u68c0\u67e5\u5185\u5b58\u4f7f\u7528\u3001\u54cd\u5e94\u65f6\u95f4\u7b49\u6307\u6807\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u517c\u5bb9\u6027\u6d4b\u8bd5<\/strong>\uff1a\u5728\u4e0d\u540c\u7248\u672c\u7684\u64cd\u4f5c\u7cfb\u7edf\u548c\u786c\u4ef6\u914d\u7f6e\u4e0a\u6d4b\u8bd5\u5e94\u7528\u7a0b\u5e8f\uff0c\u786e\u4fdd\u5176\u5177\u6709\u826f\u597d\u7684\u517c\u5bb9\u6027\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7528\u6237\u4f53\u9a8c\u6d4b\u8bd5<\/strong>\uff1a\u9080\u8bf7\u5b9e\u9645\u7528\u6237\u6d4b\u8bd5\u5e94\u7528\u7a0b\u5e8f\u7684\u4f7f\u7528\u4f53\u9a8c\uff0c\u6536\u96c6\u53cd\u9988\u5e76\u8fdb\u884c\u6539\u8fdb\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u6253\u5305Python\u5e94\u7528\u7a0b\u5e8f\u662f\u5c06\u5f00\u53d1\u9879\u76ee\u63a8\u5411\u751f\u4ea7\u73af\u5883\u7684\u91cd\u8981\u4e00\u6b65\u3002\u9009\u62e9\u5408\u9002\u7684\u6253\u5305\u5de5\u5177\u3001\u786e\u4fdd\u76ee\u6807\u5e73\u53f0\u517c\u5bb9\u6027\u3001\u4f7f\u7528\u865a\u62df\u73af\u5883\u7ba1\u7406\u4f9d\u8d56\u3001\u4ee5\u53ca\u8fdb\u884c\u5145\u5206\u7684\u6d4b\u8bd5\uff0c\u90fd\u662f\u786e\u4fdd\u6253\u5305\u6210\u529f\u7684\u5173\u952e\u56e0\u7d20\u3002\u901a\u8fc7\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u65b9\u4fbf\u5728\u4e0d\u540c\u73af\u5883\u4e2d\u90e8\u7f72\u548c\u8fd0\u884c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06Python\u9879\u76ee\u6253\u5305\u6210\u53ef\u5206\u53d1\u7684\u683c\u5f0f\uff1f<\/strong><br \/>\u8981\u5c06Python\u9879\u76ee\u6253\u5305\u6210\u53ef\u5206\u53d1\u7684\u683c\u5f0f\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u5982Setuptools\u548cWheel\u3002\u9996\u5148\uff0c\u786e\u4fdd\u60a8\u7684\u9879\u76ee\u4e2d\u5305\u542b<code>setup.py<\/code>\u6587\u4ef6\uff0c\u91cc\u9762\u5b9a\u4e49\u4e86\u9879\u76ee\u7684\u5143\u6570\u636e\u548c\u4f9d\u8d56\u9879\u3002\u7136\u540e\u4f7f\u7528\u547d\u4ee4<code>python setup.py sdist bdist_wheel<\/code>\u6765\u521b\u5efa\u6e90\u5206\u53d1\u548cWheel\u683c\u5f0f\u7684\u5305\u3002\u6700\u7ec8\u751f\u6210\u7684\u6587\u4ef6\u53ef\u4ee5\u5728<code>dist<\/code>\u76ee\u5f55\u4e2d\u627e\u5230\u3002<\/p>\n<p><strong>\u5728\u6253\u5305Python\u9879\u76ee\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u4f9d\u8d56\u7ba1\u7406\uff1f<\/strong><br \/>\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0c\u4f9d\u8d56\u7ba1\u7406\u975e\u5e38\u91cd\u8981\u3002\u60a8\u53ef\u4ee5\u5728<code>setup.py<\/code>\u4e2d\u7684<code>install_requires<\/code>\u53c2\u6570\u4e2d\u5217\u51fa\u9879\u76ee\u6240\u9700\u7684\u6240\u6709\u4f9d\u8d56\u5e93\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>requirements.txt<\/code>\u6587\u4ef6\u6765\u7ef4\u62a4\u5177\u4f53\u7684\u5e93\u7248\u672c\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u5728\u5b89\u88c5\u65f6\u907f\u514d\u7248\u672c\u51b2\u7a81\u3002\u786e\u4fdd\u5728\u6253\u5305\u524d\u6d4b\u8bd5\u4f9d\u8d56\uff0c\u4ee5\u786e\u4fdd\u9879\u76ee\u80fd\u591f\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u6253\u5305\u540e\u6d4b\u8bd5Python\u5305\u7684\u53ef\u7528\u6027\uff1f<\/strong><br \/>\u6253\u5305\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u5b89\u88c5\u751f\u6210\u7684\u5305\u6765\u6d4b\u8bd5\u5176\u53ef\u7528\u6027\u3002\u4f7f\u7528\u547d\u4ee4<code>pip install dist\/your_package_name.whl<\/code>\u6216\u8005<code>pip install dist\/your_package_name.tar.gz<\/code>\u8fdb\u884c\u5b89\u88c5\u3002\u5b89\u88c5\u540e\uff0c\u8fdb\u884c\u4e00\u4e9b\u57fa\u672c\u7684\u529f\u80fd\u6d4b\u8bd5\uff0c\u786e\u4fdd\u6240\u6709\u6a21\u5757\u548c\u529f\u80fd\u6b63\u5e38\u5de5\u4f5c\u3002\u6b64\u5916\uff0c\u53ef\u4ee5\u521b\u5efa\u5355\u5143\u6d4b\u8bd5\u6765\u9a8c\u8bc1\u4ee3\u7801\u7684\u5404\u4e2a\u90e8\u5206\u5728\u6253\u5305\u540e\u7684\u8868\u73b0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u6253\u5305Python\u5e94\u7528\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u5982PyInstaller\u3001cx_Freeze\u548cpy2exe\u3002\u9009\u62e9\u5408\u9002\u7684 [&hellip;]","protected":false},"author":3,"featured_media":924900,"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\/924896"}],"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=924896"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/924896\/revisions"}],"predecessor-version":[{"id":924902,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/924896\/revisions\/924902"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/924900"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=924896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=924896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=924896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}