{"id":981142,"date":"2024-12-27T07:00:13","date_gmt":"2024-12-26T23:00:13","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/981142.html"},"modified":"2024-12-27T07:00:15","modified_gmt":"2024-12-26T23:00:15","slug":"%e5%a6%82%e4%bd%95%e8%ae%a9python%e7%9a%84exe","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/981142.html","title":{"rendered":"\u5982\u4f55\u8ba9python\u7684exe"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24210226\/8ca9e1fd-4a7d-4c3b-a6b4-b4bbf1767fe7.webp\" alt=\"\u5982\u4f55\u8ba9python\u7684exe\" \/><\/p>\n<p><p> \u5f00\u5934\u6bb5\u843d\uff1a<br \/><strong>\u8981\u5c06Python\u811a\u672c\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff08exe\uff09\uff0c\u9700\u8981\u4f7f\u7528\u5de5\u5177\u5982PyInstaller\u3001cx_Freeze\u3001Py2exe<\/strong>\u3002\u5176\u4e2d\uff0c<strong>PyInstaller\u662f\u6700\u5e38\u7528\u7684\u9009\u62e9<\/strong>\uff0c\u56e0\u4e3a\u5b83\u652f\u6301\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\uff0c\u7b80\u5355\u6613\u7528\uff0c\u5e76\u4e14\u80fd\u591f\u81ea\u52a8\u8bc6\u522bPython\u811a\u672c\u6240\u9700\u7684\u5e93\u3002\u4f7f\u7528PyInstaller\u7684\u57fa\u672c\u6b65\u9aa4\u5305\u62ec\uff1a\u5b89\u88c5PyInstaller\u3001\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\u5c06Python\u811a\u672c\u8f6c\u6362\u4e3aexe\u6587\u4ef6\u3001\u6d4b\u8bd5\u751f\u6210\u7684exe\u6587\u4ef6\u3002\u9996\u5148\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528pip\u547d\u4ee4\u6765\u5b89\u88c5PyInstaller\uff1a<code>pip install pyinstaller<\/code>\u3002\u4e4b\u540e\uff0c\u901a\u8fc7\u547d\u4ee4\u884c\u5bfc\u822a\u5230Python\u811a\u672c\u6240\u5728\u7684\u76ee\u5f55\uff0c\u5e76\u8fd0\u884c\u547d\u4ee4<code>pyinstaller your_script.py<\/code>\uff0c\u8fd9\u5c06\u521b\u5efa\u4e00\u4e2a\u65b0\u7684<code>dist<\/code>\u76ee\u5f55\uff0c\u5176\u4e2d\u5305\u542b\u751f\u6210\u7684exe\u6587\u4ef6\u3002\u63a5\u4e0b\u6765\uff0c\u60a8\u53ef\u4ee5\u6d4b\u8bd5\u8fd9\u4e2aexe\u6587\u4ef6\uff0c\u4ee5\u786e\u4fdd\u5b83\u80fd\u591f\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001PYINSTALLER\u7684\u4f7f\u7528\u65b9\u6cd5  <\/p>\n<\/p>\n<p><p>PyInstaller\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u7528\u4e8e\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002\u5176\u7b80\u5355\u7684\u4f7f\u7528\u6d41\u7a0b\u4f7f\u5176\u6210\u4e3a\u5f00\u53d1\u8005\u7684\u9996\u9009\u3002  <\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5PyInstaller<\/strong><br \/>\u4f7f\u7528pip\u5b89\u88c5PyInstaller\u662f\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u3002\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a  <\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pip install pyinstaller  <\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>pyinstaller<\/code>\u6765\u786e\u8ba4\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002\u5982\u679c\u6210\u529f\uff0c\u7cfb\u7edf\u4f1a\u663e\u793a\u53ef\u7528\u7684PyInstaller\u547d\u4ee4\u5217\u8868\u3002  <\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6<\/strong><br \/>\u5728\u5b89\u88c5PyInstaller\u4e4b\u540e\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u5bfc\u822a\u5230Python\u811a\u672c\u6240\u5728\u7684\u76ee\u5f55\uff0c\u5e76\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u751f\u6210exe\u6587\u4ef6\uff1a  <\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pyinstaller your_script.py  <\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u751f\u6210\u4e00\u4e2a\u5305\u542b\u53ef\u6267\u884c\u6587\u4ef6\u7684<code>dist<\/code>\u76ee\u5f55\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cPyInstaller\u4f1a\u521b\u5efa\u4e00\u4e2a\u4e0e\u60a8\u7684\u811a\u672c\u76f8\u540c\u540d\u79f0\u7684\u76ee\u5f55\uff0c\u5176\u4e2d\u5305\u542b\u6240\u6709\u6253\u5305\u6240\u9700\u7684\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001PyInstaller\u7684\u9ad8\u7ea7\u9009\u9879  <\/p>\n<\/p>\n<p><p>PyInstaller\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u9009\u9879\uff0c\u5141\u8bb8\u5f00\u53d1\u8005\u6839\u636e\u9700\u8981\u81ea\u5b9a\u4e49\u53ef\u6267\u884c\u6587\u4ef6\u7684\u751f\u6210\u8fc7\u7a0b\u3002  <\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5355\u6587\u4ef6\u6253\u5305<\/strong><br \/>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cPyInstaller\u4f1a\u5c06\u6240\u6709\u4f9d\u8d56\u9879\u6253\u5305\u5230\u4e00\u4e2a\u6587\u4ef6\u5939\u4e2d\u3002\u7136\u800c\uff0c\u6709\u65f6\u60a8\u53ef\u80fd\u9700\u8981\u751f\u6210\u4e00\u4e2a\u5355\u4e00\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u53ef\u4ee5\u901a\u8fc7\u6dfb\u52a0<code>--onefile<\/code>\u9009\u9879\u5b9e\u73b0\uff1a  <\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pyinstaller --onefile your_script.py  <\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u521b\u5efa\u4e00\u4e2a\u72ec\u7acb\u7684exe\u6587\u4ef6\uff0c\u4fbf\u4e8e\u5206\u53d1\u548c\u4f7f\u7528\u3002  <\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u56fe\u6807\u548c\u7a97\u53e3\u6a21\u5f0f<\/strong><br \/>\u60a8\u53ef\u4ee5\u4e3a\u751f\u6210\u7684exe\u6587\u4ef6\u6307\u5b9a\u4e00\u4e2a\u56fe\u6807\uff0c\u5e76\u9009\u62e9\u662f\u5426\u4ee5\u7a97\u53e3\u6a21\u5f0f\u8fd0\u884c\u3002\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u53ef\u4ee5\u5b9e\u73b0\uff1a  <\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pyinstaller --onefile --windowed --icon=your_icon.ico your_script.py  <\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>--windowed<\/code>\u9009\u9879\u4f7f\u5e94\u7528\u7a0b\u5e8f\u5728Windows\u4e0a\u4ee5\u65e0\u63a7\u5236\u53f0\u7a97\u53e3\u7684\u5f62\u5f0f\u8fd0\u884c\uff0c\u800c<code>--icon<\/code>\u9009\u9879\u5141\u8bb8\u60a8\u6307\u5b9aexe\u6587\u4ef6\u7684\u56fe\u6807\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u89e3\u51b3PyInstaller\u5e38\u89c1\u95ee\u9898  <\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528PyInstaller\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\uff0c\u4e86\u89e3\u8fd9\u4e9b\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u60a8\u987a\u5229\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002  <\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u7f3a\u5c11\u6a21\u5757\u9519\u8bef<\/strong><br \/>\u5982\u679c\u5728\u751f\u6210exe\u6587\u4ef6\u65f6\u51fa\u73b0\u7f3a\u5c11\u6a21\u5757\u7684\u9519\u8bef\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>--hidden-import<\/code>\u9009\u9879\u624b\u52a8\u6307\u5b9a\u9700\u8981\u5305\u542b\u7684\u6a21\u5757\uff1a  <\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pyinstaller --onefile --hidden-import=module_name your_script.py  <\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u53ef\u4ee5\u786e\u4fdd\u6240\u6709\u5fc5\u8981\u7684\u6a21\u5757\u90fd\u5305\u542b\u5728\u6700\u7ec8\u7684\u53ef\u6267\u884c\u6587\u4ef6\u4e2d\u3002  <\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6587\u4ef6\u8def\u5f84\u95ee\u9898<\/strong><br \/>\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0c\u6d89\u53ca\u6587\u4ef6\u8def\u5f84\u7684\u4ee3\u7801\u53ef\u80fd\u4f1a\u51fa\u73b0\u95ee\u9898\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528<code>sys<\/code>\u6a21\u5757\u6765\u83b7\u53d6\u811a\u672c\u8fd0\u884c\u65f6\u7684\u8def\u5f84\uff0c\u4ece\u800c\u5904\u7406\u8fd9\u79cd\u60c5\u51b5\uff1a  <\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys  <\/p>\n<p>import os  <\/p>\n<p>def resource_path(relative_path):  <\/p>\n<p>    base_path = getattr(sys, &#39;_MEIPASS&#39;, os.path.dirname(os.path.abspath(__file__)))  <\/p>\n<p>    return os.path.join(base_path, relative_path)  <\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528<code>resource_path<\/code>\u51fd\u6570\u83b7\u53d6\u6587\u4ef6\u7684\u7edd\u5bf9\u8def\u5f84\uff0c\u4ee5\u786e\u4fdd\u5728\u6253\u5305\u540e\u8def\u5f84\u4ecd\u7136\u6709\u6548\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u5176\u4ed6Python\u6253\u5305\u5de5\u5177  <\/p>\n<\/p>\n<p><p>\u9664\u4e86PyInstaller\uff0c\u8fd8\u6709\u5176\u4ed6\u51e0\u79cd\u5de5\u5177\u53ef\u4ee5\u7528\u4e8e\u5c06Python\u811a\u672c\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002  <\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>cx_Freeze<\/strong><br \/>cx_Freeze\u662f\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684\u6253\u5305\u5de5\u5177\uff0c\u652f\u6301Windows\u3001Mac OS\u548cLinux\u3002\u4e0ePyInstaller\u7c7b\u4f3c\uff0ccx_Freeze\u80fd\u591f\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002\u5b89\u88c5cx_Freeze\u53ef\u4ee5\u901a\u8fc7pip\u5b8c\u6210\uff1a  <\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pip install cx_Freeze  <\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u60a8\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a<code>setup.py<\/code>\u811a\u672c\u6765\u914d\u7f6e\u6253\u5305\u8fc7\u7a0b\uff0c\u5e76\u4f7f\u7528\u547d\u4ee4<code>python setup.py build<\/code>\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002  <\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Py2exe<\/strong><br \/>Py2exe\u662f\u4e00\u4e2a\u4e13\u4e3aWindows\u8bbe\u8ba1\u7684\u6253\u5305\u5de5\u5177\u3002\u5b83\u76f8\u5bf9\u7b80\u5355\uff0c\u4f46\u4ec5\u652f\u6301Python 3.4\u53ca\u4ee5\u4e0b\u7248\u672c\u3002\u5b89\u88c5Py2exe\u7684\u65b9\u6cd5\u5982\u4e0b\uff1a  <\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pip install py2exe  <\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0ecx_Freeze\u76f8\u4f3c\uff0c\u60a8\u9700\u8981\u7f16\u5199\u4e00\u4e2a<code>setup.py<\/code>\u6587\u4ef6\uff0c\u5e76\u4f7f\u7528\u547d\u4ee4<code>python setup.py py2exe<\/code>\u6765\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u6d4b\u8bd5\u548c\u5206\u53d1\u53ef\u6267\u884c\u6587\u4ef6  <\/p>\n<\/p>\n<p><p>\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u540e\uff0c\u60a8\u9700\u8981\u5bf9\u5176\u8fdb\u884c\u6d4b\u8bd5\u4ee5\u786e\u4fdd\u5176\u6b63\u786e\u8fd0\u884c\uff0c\u5e76\u8003\u8651\u5982\u4f55\u5206\u53d1\u7ed9\u5176\u4ed6\u7528\u6237\u3002  <\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6d4b\u8bd5\u53ef\u6267\u884c\u6587\u4ef6<\/strong><br \/>\u5728\u6d4b\u8bd5\u8fc7\u7a0b\u4e2d\uff0c\u60a8\u5e94\u8be5\u5728\u4e0e\u5f00\u53d1\u73af\u5883\u4e0d\u540c\u7684\u73af\u5883\u4e2d\u8fd0\u884c\u751f\u6210\u7684exe\u6587\u4ef6\uff0c\u4ee5\u786e\u4fdd\u5176\u80fd\u591f\u5728\u6ca1\u6709Python\u89e3\u91ca\u5668\u7684\u60c5\u51b5\u4e0b\u72ec\u7acb\u8fd0\u884c\u3002\u8fd8\u9700\u8981\u6d4b\u8bd5\u6240\u6709\u529f\u80fd\u6a21\u5757\uff0c\u4ee5\u786e\u8ba4\u6253\u5305\u8fc7\u7a0b\u6ca1\u6709\u9057\u6f0f\u4efb\u4f55\u91cd\u8981\u7ec4\u4ef6\u3002  <\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5206\u53d1\u53ef\u6267\u884c\u6587\u4ef6<\/strong><br \/>\u4e00\u65e6\u6d4b\u8bd5\u5b8c\u6210\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5206\u53d1\u53ef\u6267\u884c\u6587\u4ef6\u3002\u53ef\u4ee5\u901a\u8fc7\u7535\u5b50\u90ae\u4ef6\u3001\u4e91\u5b58\u50a8\u670d\u52a1\uff08\u5982Google Drive\u6216Dropbox\uff09\u6216\u5728\u516c\u53f8\u5185\u90e8\u7f51\u7edc\u4e0a\u8fdb\u884c\u5171\u4eab\u3002\u5982\u679c\u9700\u8981\u66f4\u5e7f\u6cdb\u7684\u5206\u53d1\uff0c\u60a8\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u5b89\u88c5\u7a0b\u5e8f\u751f\u6210\u5de5\u5177\uff08\u5982Inno Setup\u6216NSIS\uff09\u6765\u521b\u5efa\u7528\u6237\u53cb\u597d\u7684\u5b89\u88c5\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u9075\u5faa\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u60a8\u53ef\u4ee5\u6210\u529f\u5730\u5c06Python\u811a\u672c\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u4ee5\u4fbf\u5728\u6ca1\u6709Python\u73af\u5883\u7684\u8ba1\u7b97\u673a\u4e0a\u8fd0\u884c\u3002\u5e0c\u671b\u8fd9\u4e9b\u4fe1\u606f\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06Python\u811a\u672c\u8f6c\u6362\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\uff08exe\uff09\uff1f<\/strong><br \/>\u8981\u5c06Python\u811a\u672c\u8f6c\u6362\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u5982PyInstaller\u3001cx_Freeze\u6216py2exe\u3002\u4ee5PyInstaller\u4e3a\u4f8b\uff0c\u60a8\u53ea\u9700\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c<code>pyinstaller --onefile your_script.py<\/code>\uff0c\u5b83\u4f1a\u751f\u6210\u4e00\u4e2a\u72ec\u7acb\u7684exe\u6587\u4ef6\uff0c\u60a8\u53ef\u4ee5\u5728dist\u6587\u4ef6\u5939\u4e2d\u627e\u5230\u3002<\/p>\n<p><strong>\u8f6c\u6362\u540e\u7684exe\u6587\u4ef6\u53ef\u4ee5\u5728\u6ca1\u6709Python\u73af\u5883\u7684\u7535\u8111\u4e0a\u8fd0\u884c\u5417\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u4f7f\u7528PyInstaller\u7b49\u5de5\u5177\u751f\u6210\u7684exe\u6587\u4ef6\u662f\u72ec\u7acb\u7684\uff0c\u610f\u5473\u7740\u5728\u6ca1\u6709\u5b89\u88c5Python\u7684\u7535\u8111\u4e0a\u4e5f\u53ef\u4ee5\u8fd0\u884c\u3002\u4e0d\u8fc7\uff0c\u786e\u4fdd\u5728\u6253\u5305\u65f6\u5305\u542b\u6240\u6709\u5fc5\u8981\u7684\u4f9d\u8d56\u9879\uff0c\u4ee5\u907f\u514d\u8fd0\u884c\u65f6\u9519\u8bef\u3002<\/p>\n<p><strong>\u662f\u5426\u9700\u8981\u7279\u522b\u7684\u8bbe\u7f6e\u6765\u4f18\u5316\u751f\u6210\u7684exe\u6587\u4ef6\uff1f<\/strong><br \/>\u786e\u5b9e\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e9b\u914d\u7f6e\u6765\u4f18\u5316exe\u6587\u4ef6\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u5728PyInstaller\u7684.spec\u6587\u4ef6\u4e2d\u8c03\u6574\u8bbe\u7f6e\uff0c\u4ee5\u7f29\u5c0f\u6587\u4ef6\u5927\u5c0f\u6216\u6dfb\u52a0\u56fe\u6807\u3002\u9009\u62e9\u5408\u9002\u7684\u53c2\u6570\u548c\u9009\u9879\u53ef\u4ee5\u5e2e\u52a9\u60a8\u6839\u636e\u9700\u6c42\u751f\u6210\u66f4\u4f18\u8d28\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5f00\u5934\u6bb5\u843d\uff1a\u8981\u5c06Python\u811a\u672c\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff08exe\uff09\uff0c\u9700\u8981\u4f7f\u7528\u5de5\u5177\u5982PyInstaller\u3001cx_Free [&hellip;]","protected":false},"author":3,"featured_media":981153,"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\/981142"}],"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=981142"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/981142\/revisions"}],"predecessor-version":[{"id":981157,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/981142\/revisions\/981157"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/981153"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=981142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=981142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=981142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}