{"id":963856,"date":"2024-12-27T04:22:36","date_gmt":"2024-12-26T20:22:36","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/963856.html"},"modified":"2024-12-27T04:22:38","modified_gmt":"2024-12-26T20:22:38","slug":"python%e5%a6%82%e4%bd%95%e5%8f%91%e5%b8%83%e6%88%90%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/963856.html","title":{"rendered":"python\u5982\u4f55\u53d1\u5e03\u6210\u7a0b\u5e8f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24180935\/768dffde-12da-4c94-8a5a-4d1be2c1020a.webp\" alt=\"python\u5982\u4f55\u53d1\u5e03\u6210\u7a0b\u5e8f\" \/><\/p>\n<p><p> <strong>\u8981\u5c06Python\u811a\u672c\u53d1\u5e03\u6210\u53ef\u6267\u884c\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u5982PyInstaller\u3001cx_Freeze\u3001Py2exe\u7b49\uff0c\u5c06Python\u4ee3\u7801\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u8fd9\u6837\u7528\u6237\u65e0\u9700\u5b89\u88c5Python\u89e3\u91ca\u5668\u5373\u53ef\u8fd0\u884c\u7a0b\u5e8f\u3002\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528PyInstaller\uff0c\u5b83\u652f\u6301Windows\u3001Linux\u548cmacOS\u5e73\u53f0\uff0c\u4e14\u64cd\u4f5c\u7b80\u5355\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528PyInstaller\u5c06Python\u811a\u672c\u53d1\u5e03\u6210\u7a0b\u5e8f\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5\u548c\u57fa\u672c\u4f7f\u7528<\/p>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u4f7f\u7528PyInstaller\u4e4b\u524d\uff0c\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5Python\u73af\u5883\u3002\u53ef\u4ee5\u901a\u8fc7Python\u7684\u5305\u7ba1\u7406\u5de5\u5177pip\u6765\u5b89\u88c5PyInstaller\u3002\u6253\u5f00\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\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\u4fbf\u53ef\u4ee5\u4f7f\u7528PyInstaller\u6765\u6253\u5305Python\u811a\u672c\u3002\u5047\u8bbe\u60a8\u7684Python\u811a\u672c\u6587\u4ef6\u540d\u4e3a<code>my_script.py<\/code>\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller my_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8be5\u547d\u4ee4\u4f1a\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u751f\u6210\u4e00\u4e2a<code>dist<\/code>\u6587\u4ef6\u5939\uff0c\u91cc\u9762\u5305\u542b\u4e86\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002\u5728Windows\u4e0a\uff0c\u8fd9\u5c06\u662f\u4e00\u4e2a<code>.exe<\/code>\u6587\u4ef6\uff1b\u5728Linux\u548cmacOS\u4e0a\uff0c\u8fd9\u662f\u4e00\u4e2a\u53ef\u6267\u884c\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u6253\u5305\u9009\u9879<\/p>\n<\/p>\n<p><p>PyInstaller\u63d0\u4f9b\u4e86\u591a\u79cd\u9009\u9879\u4ee5\u5b9a\u5236\u6253\u5305\u8fc7\u7a0b\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u9009\u9879\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5355\u4e2a\u53ef\u6267\u884c\u6587\u4ef6<\/strong>\uff1a\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cPyInstaller\u4f1a\u751f\u6210\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u6587\u4ef6\u7684\u76ee\u5f55\u3002\u82e5\u5e0c\u671b\u751f\u6210\u5355\u4e2a\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 my_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u56fe\u6807\u6587\u4ef6<\/strong>\uff1a\u53ef\u4ee5\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\u6307\u5b9a\u4e00\u4e2a\u56fe\u6807\uff0c\u4f7f\u7528<code>--icon<\/code>\u9009\u9879\u3002\u56fe\u6807\u6587\u4ef6\u901a\u5e38\u662f<code>.ico<\/code>\u683c\u5f0f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --icon=my_icon.ico my_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u63a7\u5236\u53f0\u7a97\u53e3<\/strong>\uff1a\u5728Windows\u4e0a\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u4f1a\u5f39\u51fa\u4e00\u4e2a\u63a7\u5236\u53f0\u7a97\u53e3\u3002\u5982\u679c\u4e0d\u5e0c\u671b\u663e\u793a\u63a7\u5236\u53f0\u7a97\u53e3\uff0c\u53ef\u4ee5\u4f7f\u7528<code>--noconsole<\/code>\u9009\u9879\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --noconsole my_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u5904\u7406\u5916\u90e8\u8d44\u6e90\u548c\u4f9d\u8d56<\/p>\n<\/p>\n<p><p>\u5728\u5f00\u53d1Python\u5e94\u7528\u65f6\uff0c\u53ef\u80fd\u4f1a\u4f7f\u7528\u5230\u5916\u90e8\u8d44\u6e90\u6587\u4ef6\uff08\u4f8b\u5982\u914d\u7f6e\u6587\u4ef6\u3001\u6570\u636e\u6587\u4ef6\u7b49\uff09\u6216\u4f9d\u8d56\u5e93\u3002PyInstaller\u80fd\u591f\u81ea\u52a8\u68c0\u6d4b\u5927\u90e8\u5206\u4f9d\u8d56\uff0c\u4f46\u6709\u65f6\u9700\u8981\u624b\u52a8\u6307\u5b9a\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5305\u542b\u989d\u5916\u6587\u4ef6<\/strong>\uff1a\u53ef\u4ee5\u901a\u8fc7<code>--add-data<\/code>\u9009\u9879\u6765\u5305\u542b\u5916\u90e8\u6587\u4ef6\u3002\u8bed\u6cd5\u4e3a<code>source:destination<\/code>\uff0c\u5176\u4e2d<code>source<\/code>\u662f\u9700\u8981\u5305\u542b\u7684\u6587\u4ef6\uff0c<code>destination<\/code>\u662f\u6587\u4ef6\u5728\u6253\u5305\u540e\u7684\u4f4d\u7f6e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --add-data &quot;config.yaml;.&quot; my_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6ce8\u610f\u5728Windows\u4e0a\u4f7f\u7528<code>;<\/code>\u4f5c\u4e3a\u5206\u9694\u7b26\uff0c\u5728Linux\u548cmacOS\u4e0a\u4f7f\u7528<code>:<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5904\u7406\u9690\u85cf\u5bfc\u5165<\/strong>\uff1a\u6709\u4e9b\u60c5\u51b5\u4e0b\uff0cPyInstaller\u53ef\u80fd\u65e0\u6cd5\u68c0\u6d4b\u5230\u67d0\u4e9b\u52a8\u6001\u5bfc\u5165\u7684\u6a21\u5757\uff0c\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528<code>--hidden-import<\/code>\u9009\u9879\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --hidden-import=module_name my_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u8c03\u8bd5\u548c\u4f18\u5316<\/p>\n<\/p>\n<p><p>\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u95ee\u9898\uff0c\u5982\u7f3a\u5c11\u4f9d\u8d56\u3001\u9519\u8bef\u914d\u7f6e\u7b49\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u89e3\u51b3\u95ee\u9898\u548c\u4f18\u5316\u7684\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u67e5\u770b\u65e5\u5fd7<\/strong>\uff1a\u5728\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u65f6\uff0cPyInstaller\u4f1a\u8f93\u51fa\u8be6\u7ec6\u7684\u65e5\u5fd7\u4fe1\u606f\u3002\u53ef\u4ee5\u67e5\u770b\u8fd9\u4e9b\u65e5\u5fd7\u6765\u786e\u5b9a\u95ee\u9898\u6240\u5728\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6253\u5305\u6d4b\u8bd5<\/strong>\uff1a\u5728\u751f\u6210\u6700\u7ec8\u7248\u672c\u4e4b\u524d\uff0c\u5efa\u8bae\u5728\u4e0d\u540c\u7684\u73af\u5883\u4e2d\u6d4b\u8bd5\u6253\u5305\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u4ee5\u786e\u4fdd\u5176\u5728\u76ee\u6807\u5e73\u53f0\u4e0a\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f18\u5316\u5927\u5c0f<\/strong>\uff1a\u751f\u6210\u7684\u5355\u6587\u4ef6\u901a\u5e38\u8f83\u5927\uff0c\u53ef\u4ee5\u901a\u8fc7\u6392\u9664\u4e0d\u5fc5\u8981\u7684\u6a21\u5757\u6765\u51cf\u5c0f\u4f53\u79ef\u3002\u4f7f\u7528<code>--exclude-module<\/code>\u9009\u9879\u6765\u6392\u9664\u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --exclude-module=test_module my_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u5e73\u53f0\u517c\u5bb9\u6027<\/p>\n<\/p>\n<p><p>PyInstaller\u652f\u6301\u591a\u5e73\u53f0\u6253\u5305\uff0c\u4f46\u9700\u8981\u5728\u76ee\u6807\u5e73\u53f0\u4e0a\u6267\u884c\u6253\u5305\u547d\u4ee4\u3002\u4f8b\u5982\uff0c\u82e5\u5e0c\u671b\u751f\u6210Windows\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u6700\u597d\u5728Windows\u73af\u5883\u4e0b\u8fdb\u884c\u6253\u5305\u3002\u5bf9\u4e8eLinux\u548cmacOS\u540c\u6837\u9002\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8de8\u5e73\u53f0\u6253\u5305<\/strong>\uff1a\u5982\u679c\u9700\u8981\u5728\u4e0d\u540c\u5e73\u53f0\u4e0a\u6253\u5305\uff0c\u5efa\u8bae\u4f7f\u7528\u865a\u62df\u673a\u6216Docker\u6765\u521b\u5efa\u76f8\u5e94\u7684\u6784\u5efa\u73af\u5883\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528Wine<\/strong>\uff1a\u5728Linux\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528Wine\u6765\u6a21\u62dfWindows\u73af\u5883\uff0c\u4ece\u800c\u751f\u6210Windows\u53ef\u6267\u884c\u6587\u4ef6\u3002\u4e0d\u8fc7\uff0c\u8fd9\u79cd\u65b9\u6cd5\u53ef\u80fd\u4f1a\u5bfc\u81f4\u67d0\u4e9b\u517c\u5bb9\u6027\u95ee\u9898\uff0c\u9700\u8c28\u614e\u4f7f\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u5176\u4ed6\u6253\u5305\u5de5\u5177<\/p>\n<\/p>\n<p><p>\u9664\u4e86PyInstaller\uff0cPython\u8fd8\u6709\u5176\u4ed6\u6253\u5305\u5de5\u5177\u53ef\u4ee5\u9009\u62e9\uff0c\u4ee5\u4e0b\u662f\u4e24\u79cd\u5e38\u7528\u7684\u66ff\u4ee3\u65b9\u6848\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>cx_Freeze<\/strong>\uff1a\u4e0ePyInstaller\u7c7b\u4f3c\uff0ccx_Freeze\u4e5f\u662f\u4e00\u4e2a\u5c06Python\u811a\u672c\u8f6c\u6362\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5de5\u5177\uff0c\u652f\u6301\u591a\u4e2a\u5e73\u53f0\u3002\u5176\u914d\u7f6e\u6587\u4ef6\u4e3aPython\u811a\u672c\uff0c\u63d0\u4f9b\u4e86\u7075\u6d3b\u7684\u5b9a\u5236\u9009\u9879\u3002<\/p>\n<\/p>\n<p><p>\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<p><p>\u4f7f\u7528cx_Freeze\u6253\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">cxfreeze my_script.py --target-dir dist\/<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>Py2exe<\/strong>\uff1a\u4e13\u95e8\u7528\u4e8e\u5c06Python\u811a\u672c\u8f6c\u6362\u4e3aWindows\u53ef\u6267\u884c\u6587\u4ef6\u3002\u5176\u4f7f\u7528\u65b9\u6cd5\u7c7b\u4f3c\u4e8ePyInstaller\uff0c\u4f46\u4ec5\u652f\u6301Windows\u5e73\u53f0\u3002<\/p>\n<\/p>\n<p><p>\u5b89\u88c5Py2exe\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install py2exe<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528Py2exe\u6253\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python setup.py py2exe<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u603b\u7ed3\uff0c\u4f7f\u7528PyInstaller\u5c06Python\u811a\u672c\u53d1\u5e03\u6210\u53ef\u6267\u884c\u7a0b\u5e8f\u662f\u4e00\u4e2a\u7b80\u5355\u800c\u9ad8\u6548\u7684\u9009\u62e9\uff0c\u901a\u8fc7\u914d\u7f6e\u4e0d\u540c\u7684\u9009\u9879\uff0c\u53ef\u4ee5\u6ee1\u8db3\u5927\u591a\u6570\u5e94\u7528\u573a\u666f\u7684\u9700\u6c42\u3002\u5bf9\u4e8e\u7279\u6b8a\u9700\u6c42\uff0c\u53ef\u4ee5\u7ed3\u5408\u5176\u4ed6\u5de5\u5177\u5982cx_Freeze\u548cPy2exe\u6765\u5b9e\u73b0\u8de8\u5e73\u53f0\u7684\u6253\u5305\u548c\u53d1\u5e03\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06Python\u811a\u672c\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff1f<\/strong><br \/>\u8981\u5c06Python\u811a\u672c\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u5982PyInstaller\u3001cx_Freeze\u6216py2exe\u3002\u8fd9\u4e9b\u5de5\u5177\u4f1a\u5c06Python\u89e3\u91ca\u5668\u548c\u4f60\u7684\u811a\u672c\u6253\u5305\u6210\u4e00\u4e2a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u7528\u6237\u53ea\u9700\u53cc\u51fb\u5373\u53ef\u8fd0\u884c\u3002\u4f7f\u7528PyInstaller\u65f6\uff0c\u53ea\u9700\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c<code>pyinstaller your_script.py<\/code>\uff0c\u7cfb\u7edf\u5c06\u751f\u6210\u4e00\u4e2a\u5305\u542b\u53ef\u6267\u884c\u6587\u4ef6\u7684\u6587\u4ef6\u5939\u3002<\/p>\n<p><strong>\u53d1\u5e03Python\u7a0b\u5e8f\u65f6\u9700\u8981\u8003\u8651\u54ea\u4e9b\u4f9d\u8d56\uff1f<\/strong><br \/>\u5728\u53d1\u5e03Python\u7a0b\u5e8f\u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fdd\u6240\u6709\u4f9d\u8d56\u5e93\u90fd\u5df2\u6b63\u786e\u5b89\u88c5\u3002\u53ef\u4ee5\u901a\u8fc7<code>requirements.txt<\/code>\u6587\u4ef6\u6765\u7ba1\u7406\u8fd9\u4e9b\u4f9d\u8d56\uff0c\u7528\u6237\u53ea\u9700\u8fd0\u884c<code>pip install -r requirements.txt<\/code>\u6765\u5b89\u88c5\u6240\u9700\u7684\u5e93\u3002\u6b64\u5916\uff0c\u786e\u4fdd\u5728\u7a0b\u5e8f\u4e2d\u5904\u7406\u597d\u4f9d\u8d56\u7684\u7248\u672c\uff0c\u907f\u514d\u56e0\u7248\u672c\u4e0d\u517c\u5bb9\u800c\u5bfc\u81f4\u7684\u8fd0\u884c\u9519\u8bef\u3002<\/p>\n<p><strong>\u5982\u4f55\u786e\u4fdd\u6211\u7684Python\u7a0b\u5e8f\u5728\u4e0d\u540c\u5e73\u53f0\u4e0a\u90fd\u80fd\u8fd0\u884c\uff1f<\/strong><br \/>\u4e3a\u4e86\u786e\u4fddPython\u7a0b\u5e8f\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u90fd\u80fd\u987a\u5229\u8fd0\u884c\uff0c\u53ef\u4ee5\u4f7f\u7528\u8de8\u5e73\u53f0\u7684\u5de5\u5177\u6765\u6253\u5305\u4f60\u7684\u7a0b\u5e8f\uff0c\u4f8b\u5982PyInstaller\u548cDocker\u3002\u5bf9\u4e8ePyInstaller\uff0c\u9009\u62e9\u5408\u9002\u7684\u53c2\u6570\u53ef\u4ee5\u751f\u6210\u9002\u5408Windows\u3001macOS\u548cLinux\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002Docker\u5219\u5141\u8bb8\u4f60\u5728\u4e00\u4e2a\u5bb9\u5668\u4e2d\u5c01\u88c5\u5e94\u7528\u53ca\u5176\u6240\u6709\u4f9d\u8d56\uff0c\u65e0\u8bba\u7528\u6237\u7684\u64cd\u4f5c\u7cfb\u7edf\u5982\u4f55\uff0c\u5bb9\u5668\u90fd\u80fd\u63d0\u4f9b\u4e00\u81f4\u7684\u8fd0\u884c\u73af\u5883\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5c06Python\u811a\u672c\u53d1\u5e03\u6210\u53ef\u6267\u884c\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u5982PyInstaller\u3001cx_Freeze\u3001Py2exe\u7b49 [&hellip;]","protected":false},"author":3,"featured_media":963860,"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\/963856"}],"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=963856"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/963856\/revisions"}],"predecessor-version":[{"id":963862,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/963856\/revisions\/963862"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/963860"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=963856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=963856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=963856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}