{"id":998182,"date":"2024-12-27T09:30:32","date_gmt":"2024-12-27T01:30:32","guid":{"rendered":""},"modified":"2024-12-27T09:30:35","modified_gmt":"2024-12-27T01:30:35","slug":"python%e5%86%99%e5%ae%8c%e6%b8%b8%e6%88%8f%e5%a6%82%e4%bd%95%e6%89%93%e5%8c%85","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/998182.html","title":{"rendered":"python\u5199\u5b8c\u6e38\u620f\u5982\u4f55\u6253\u5305"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25073714\/a67c185e-8bc0-415f-b039-6435e5e08bee.webp\" alt=\"python\u5199\u5b8c\u6e38\u620f\u5982\u4f55\u6253\u5305\" \/><\/p>\n<p><p> \u5f00\u5934\u6bb5\u843d:<br \/><strong>Python\u5199\u5b8c\u6e38\u620f\u540e\u6253\u5305\u7684\u65b9\u6cd5\u4e3b\u8981\u5305\u62ec\u4f7f\u7528PyInstaller\u3001cx_Freeze\u3001py2exe\u7b49\u5de5\u5177\uff0c\u5c06Python\u4ee3\u7801\u8f6c\u6362\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\u3001\u5229\u7528\u865a\u62df\u73af\u5883\u89e3\u51b3\u4f9d\u8d56\u95ee\u9898\u3001\u4f18\u5316\u8d44\u6e90\u6587\u4ef6\u51cf\u5c11\u4f53\u79ef\u3002<\/strong>\u5176\u4e2d\uff0c<strong>PyInstaller<\/strong> \u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u4e14\u529f\u80fd\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u5c06Python\u7a0b\u5e8f\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002PyInstaller\u7684\u4f18\u70b9\u5728\u4e8e\u5176\u5bf9\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\u7684\u652f\u6301\uff0c\u5c24\u5176\u662fWindows\u548cLinux\u3002\u5b83\u80fd\u591f\u81ea\u52a8\u5206\u6790\u7a0b\u5e8f\u7684\u4f9d\u8d56\u5173\u7cfb\uff0c\u5c06\u6240\u9700\u7684\u5e93\u6587\u4ef6\u548c\u8d44\u6e90\u4e00\u5e76\u6253\u5305\uff0c\u751f\u6210\u5355\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\u6216\u76ee\u5f55\u5f62\u5f0f\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u8fd9\u4f7f\u5f97\u5206\u53d1\u548c\u90e8\u7f72Python\u5e94\u7528\u7a0b\u5e8f\u53d8\u5f97\u5f02\u5e38\u7b80\u5355\uff0c\u51cf\u5c11\u4e86\u5bf9\u76ee\u6807\u7cfb\u7edfPython\u73af\u5883\u7684\u4f9d\u8d56\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001PYINSTALLER<\/p>\n<\/p>\n<p><p>PyInstaller\u662f\u4e00\u4e2a\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u72ec\u7acb\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5de5\u5177\uff0c\u5b83\u80fd\u591f\u81ea\u52a8\u5206\u6790\u7a0b\u5e8f\u7684\u4f9d\u8d56\u5173\u7cfb\uff0c\u5e76\u5c06\u6240\u6709\u5fc5\u8981\u7684\u6587\u4ef6\u6253\u5305\u5728\u4e00\u8d77\u3002\u4e3a\u4e86\u4f7f\u7528PyInstaller\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u5b83\uff0c\u53ef\u4ee5\u901a\u8fc7pip\u547d\u4ee4\u8fdb\u884c\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\u57fa\u672c\u7684\u4f7f\u7528\u65b9\u6cd5\u662f\u901a\u8fc7\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\u91cc\u9762\u5305\u542b\u6253\u5305\u540e\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cPyInstaller\u4f1a\u751f\u6210\u4e00\u4e2a\u5305\u542b\u6240\u6709\u4f9d\u8d56\u7684\u76ee\u5f55\u7ed3\u6784\u3002\u8981\u521b\u5efa\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 your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>PyInstaller\u4e0d\u4ec5\u652f\u6301Windows\uff0c\u8fd8\u652f\u6301Linux\u548cmacOS\uff0c\u8fd9\u4f7f\u5f97\u5b83\u6210\u4e3a\u8de8\u5e73\u53f0\u6253\u5305\u7684\u7406\u60f3\u9009\u62e9\u3002\u5b83\u8fd8\u53ef\u4ee5\u5904\u7406\u590d\u6742\u7684\u4f9d\u8d56\u5173\u7cfb\uff0c\u5982C\u6269\u5c55\u548c\u52a8\u6001\u94fe\u63a5\u5e93\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001CX_FREEZE<\/p>\n<\/p>\n<p><p>cx_Freeze\u662f\u53e6\u4e00\u4e2a\u6d41\u884c\u7684Python\u7a0b\u5e8f\u6253\u5305\u5de5\u5177\uff0c\u652f\u6301\u591a\u5e73\u53f0\u3002\u4e0ePyInstaller\u7c7b\u4f3c\uff0c\u5b83\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u53ca\u5176\u6240\u6709\u4f9d\u8d56\u9879\u6253\u5305\u5728\u4e00\u8d77\uff0c\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002\u5b89\u88c5cx_Freeze\u540c\u6837\u4f7f\u7528pip\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\u65f6\uff0c\u9700\u8981\u521b\u5efa\u4e00\u4e2a<code>setup.py<\/code>\u811a\u672c\uff0c\u5b9a\u4e49\u6253\u5305\u7684\u9009\u9879\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684<code>setup.py<\/code>\u793a\u4f8b\uff1a<\/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;my_game&quot;,<\/p>\n<p>    version = &quot;0.1&quot;,<\/p>\n<p>    description = &quot;My Game&quot;,<\/p>\n<p>    executables = [Executable(&quot;your_script.py&quot;)]<\/p>\n<p>)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\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>cx_Freeze\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u540c\u6837\u4fdd\u5b58\u5728<code>build\/<\/code>\u76ee\u5f55\u4e2d\uff0c\u5b83\u5141\u8bb8\u66f4\u590d\u6742\u7684\u914d\u7f6e\u9009\u9879\uff0c\u5982\u5305\u542b\u989d\u5916\u7684\u6587\u4ef6\u548c\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001PY2EXE<\/p>\n<\/p>\n<p><p>py2exe\u662f\u4e13\u95e8\u4e3aWindows\u5e73\u53f0\u8bbe\u8ba1\u7684\u6253\u5305\u5de5\u5177\uff0c\u5b83\u80fd\u591f\u5c06Python\u811a\u672c\u8f6c\u6362\u4e3aWindows\u53ef\u6267\u884c\u6587\u4ef6\u3002\u5c3d\u7ba1\u4e0d\u5982PyInstaller\u548ccx_Freeze\u6d41\u884c\uff0c\u4f46\u5728Windows\u73af\u5883\u4e0b\u975e\u5e38\u5b9e\u7528\u3002<\/p>\n<\/p>\n<p><p>\u5b89\u88c5py2exe\u9700\u8981\u6ce8\u610fPython\u7248\u672c\u7684\u517c\u5bb9\u6027\uff0c\u4f7f\u7528pip\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install py2exe<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0ecx_Freeze\u76f8\u4f3c\uff0cpy2exe\u9700\u8981\u4e00\u4e2a<code>setup.py<\/code>\u6587\u4ef6\u6765\u5b9a\u4e49\u6253\u5305\u914d\u7f6e\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<p><p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\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>\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u4f4d\u4e8e<code>dist\/<\/code>\u76ee\u5f55\u4e2d\u3002py2exe\u9002\u7528\u4e8e\u7b80\u5355\u7684Python\u5e94\u7528\u7a0b\u5e8f\uff0c\u7279\u522b\u662f\u5728Windows\u73af\u5883\u4e0b\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u7ba1\u7406\u4f9d\u8d56\u548c\u865a\u62df\u73af\u5883<\/p>\n<\/p>\n<p><p>\u5728\u6253\u5305Python\u6e38\u620f\u65f6\uff0c\u7ba1\u7406\u4f9d\u8d56\u5173\u7cfb\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u6b65\u9aa4\u3002\u4f7f\u7528\u865a\u62df\u73af\u5883\u53ef\u4ee5\u5e2e\u52a9\u9694\u79bb\u9879\u76ee\u7684\u4f9d\u8d56\uff0c\u786e\u4fdd\u6253\u5305\u65f6\u7684\u73af\u5883\u4e0e\u5f00\u53d1\u73af\u5883\u4e00\u81f4\u3002<\/p>\n<\/p>\n<p><p>\u521b\u5efa\u865a\u62df\u73af\u5883\u7684\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python -m venv myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<ul>\n<li>\n<p>\u5728Windows\u4e0a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">myenv\\Scripts\\activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p>\u5728Unix\u6216macOS\u4e0a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">source myenv\/bin\/activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<p><p>\u5728\u865a\u62df\u73af\u5883\u4e2d\u5b89\u88c5\u6240\u9700\u7684\u4f9d\u8d56\u5e93\uff0c\u8fd9\u6837\u53ef\u4ee5\u907f\u514d\u5305\u7ba1\u7406\u4e2d\u7684\u51b2\u7a81\uff0c\u5e76\u786e\u4fdd\u6253\u5305\u65f6\u6240\u9700\u7684\u5e93\u7248\u672c\u4e0e\u5f00\u53d1\u65f6\u4e00\u81f4\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u4f18\u5316\u8d44\u6e90\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u5728\u6253\u5305\u6e38\u620f\u65f6\uff0c\u8d44\u6e90\u6587\u4ef6\uff08\u5982\u56fe\u50cf\u3001\u97f3\u9891\u3001\u914d\u7f6e\u6587\u4ef6\u7b49\uff09\u53ef\u80fd\u4f1a\u5bfc\u81f4\u6700\u7ec8\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u4f53\u79ef\u8fc7\u5927\u3002\u4e3a\u4e86\u4f18\u5316\u8d44\u6e90\u6587\u4ef6\uff0c\u53ef\u4ee5\u8003\u8651\u4ee5\u4e0b\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u538b\u7f29\u8d44\u6e90<\/strong>\uff1a\u4f7f\u7528\u56fe\u50cf\u538b\u7f29\u5de5\u5177\u6216\u97f3\u9891\u538b\u7f29\u5de5\u5177\u51cf\u5c11\u6587\u4ef6\u5927\u5c0f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u79fb\u9664\u4e0d\u5fc5\u8981\u7684\u8d44\u6e90<\/strong>\uff1a\u68c0\u67e5\u5e76\u79fb\u9664\u672a\u4f7f\u7528\u6216\u5197\u4f59\u7684\u8d44\u6e90\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u52a8\u6001\u52a0\u8f7d\u8d44\u6e90<\/strong>\uff1a\u5728\u6e38\u620f\u8fd0\u884c\u65f6\u52a8\u6001\u52a0\u8f7d\u8d44\u6e90\uff0c\u800c\u4e0d\u662f\u5728\u6253\u5305\u65f6\u5c06\u6240\u6709\u8d44\u6e90\u6253\u5305\u5728\u4e00\u8d77\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u5408\u7406\u7ba1\u7406\u548c\u4f18\u5316\u8d44\u6e90\u6587\u4ef6\uff0c\u53ef\u4ee5\u663e\u8457\u964d\u4f4e\u53ef\u6267\u884c\u6587\u4ef6\u7684\u4f53\u79ef\uff0c\u63d0\u9ad8\u7a0b\u5e8f\u7684\u52a0\u8f7d\u901f\u5ea6\u548c\u8fd0\u884c\u6548\u7387\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u6d4b\u8bd5\u548c\u90e8\u7f72<\/p>\n<\/p>\n<p><p>\u5728\u6253\u5305\u5b8c\u6210\u540e\uff0c\u786e\u4fdd\u5bf9\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u8fdb\u884c\u5145\u5206\u6d4b\u8bd5\uff0c\u9a8c\u8bc1\u5176\u5728\u76ee\u6807\u5e73\u53f0\u4e0a\u7684\u517c\u5bb9\u6027\u548c\u6027\u80fd\u3002\u53ef\u4ee5\u4f7f\u7528\u81ea\u52a8\u5316\u6d4b\u8bd5\u5de5\u5177\u6765\u8fdb\u884c\u56de\u5f52\u6d4b\u8bd5\uff0c\u786e\u4fdd\u6e38\u620f\u529f\u80fd\u7684\u5b8c\u6574\u6027\u3002<\/p>\n<\/p>\n<p><p>\u90e8\u7f72\u65f6\uff0c\u9009\u62e9\u5408\u9002\u7684\u5206\u53d1\u6e20\u9053\uff0c\u5982\u6e38\u620f\u5546\u5e97\u3001\u5b98\u65b9\u7f51\u7ad9\u6216\u5176\u4ed6\u7b2c\u4e09\u65b9\u5e73\u53f0\u3002\u63d0\u4f9b\u8be6\u7ec6\u7684\u5b89\u88c5\u8bf4\u660e\u548c\u7cfb\u7edf\u8981\u6c42\uff0c\u4ee5\u4fbf\u7528\u6237\u80fd\u591f\u987a\u5229\u5b89\u88c5\u548c\u8fd0\u884c\u6e38\u620f\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3\uff0cPython\u6e38\u620f\u6253\u5305\u6d89\u53ca\u591a\u4e2a\u6b65\u9aa4\uff0c\u4ece\u9009\u62e9\u5408\u9002\u7684\u6253\u5305\u5de5\u5177\u5230\u7ba1\u7406\u4f9d\u8d56\u5173\u7cfb\u548c\u4f18\u5316\u8d44\u6e90\u6587\u4ef6\u3002\u901a\u8fc7\u5408\u7406\u7684\u6253\u5305\u7b56\u7565\uff0c\u53ef\u4ee5\u6709\u6548\u63d0\u9ad8\u6e38\u620f\u7684\u53ef\u5206\u53d1\u6027\u548c\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06Python\u6e38\u620f\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff1f<\/strong><br \/>\u5728\u6253\u5305Python\u6e38\u620f\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u50cfPyInstaller\u3001cx_Freeze\u6216py2exe\u8fd9\u6837\u7684\u5de5\u5177\u3002\u8fd9\u4e9b\u5de5\u5177\u80fd\u591f\u5c06Python\u4ee3\u7801\u53ca\u5176\u4f9d\u8d56\u9879\u6253\u5305\u6210\u4e00\u4e2a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u65b9\u4fbf\u7528\u6237\u5728\u6ca1\u6709Python\u73af\u5883\u7684\u673a\u5668\u4e0a\u8fd0\u884c\u3002\u5177\u4f53\u6b65\u9aa4\u901a\u5e38\u5305\u62ec\u5b89\u88c5\u6253\u5305\u5de5\u5177\u3001\u914d\u7f6e\u6253\u5305\u811a\u672c\u548c\u6267\u884c\u6253\u5305\u547d\u4ee4\u3002\u8be6\u7ec6\u7684\u4f7f\u7528\u65b9\u6cd5\u53ef\u4ee5\u5728\u5404\u81ea\u7684\u5b98\u65b9\u6587\u6863\u4e2d\u627e\u5230\u3002<\/p>\n<p><strong>\u6253\u5305\u540e\u7684\u6e38\u620f\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u662f\u5426\u80fd\u517c\u5bb9\u8fd0\u884c\uff1f<\/strong><br \/>\u6253\u5305\u540e\u7684\u6e38\u620f\u901a\u5e38\u662f\u9488\u5bf9\u7279\u5b9a\u64cd\u4f5c\u7cfb\u7edf\u7684\uff0c\u6bd4\u5982Windows\u3001macOS\u6216Linux\u3002\u5982\u679c\u5e0c\u671b\u5728\u591a\u4e2a\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884c\uff0c\u6700\u597d\u5206\u522b\u5728\u6bcf\u4e2a\u76ee\u6807\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fdb\u884c\u6253\u5305\u3002\u90e8\u5206\u5de5\u5177\u5982PyInstaller\u652f\u6301\u8de8\u5e73\u53f0\u6253\u5305\uff0c\u4f46\u53ef\u80fd\u9700\u8981\u989d\u5916\u7684\u8bbe\u7f6e\u548c\u4f9d\u8d56\u9879\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u6e38\u620f\u4e2d\u4f7f\u7528\u7684\u7b2c\u4e09\u65b9\u5e93\u548c\u8d44\u6e90\u6587\u4ef6\uff1f<\/strong><br \/>\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0c\u786e\u4fdd\u6240\u6709\u7b2c\u4e09\u65b9\u5e93\u548c\u8d44\u6e90\u6587\u4ef6\uff08\u5982\u56fe\u50cf\u3001\u97f3\u9891\u7b49\uff09\u90fd\u5305\u542b\u5728\u6253\u5305\u7684\u6587\u4ef6\u4e2d\u3002\u5927\u591a\u6570\u6253\u5305\u5de5\u5177\u5141\u8bb8\u60a8\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6307\u5b9a\u989d\u5916\u7684\u6587\u4ef6\u548c\u76ee\u5f55\uff0c\u4ee5\u4fbf\u5728\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u4e2d\u5305\u542b\u8fd9\u4e9b\u8d44\u6e90\u3002\u68c0\u67e5\u6253\u5305\u5de5\u5177\u7684\u6587\u6863\uff0c\u4ee5\u4e86\u89e3\u5982\u4f55\u6b63\u786e\u914d\u7f6e\u548c\u6253\u5305\u8d44\u6e90\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5f00\u5934\u6bb5\u843d:Python\u5199\u5b8c\u6e38\u620f\u540e\u6253\u5305\u7684\u65b9\u6cd5\u4e3b\u8981\u5305\u62ec\u4f7f\u7528PyInstaller\u3001cx_Freeze\u3001py2exe [&hellip;]","protected":false},"author":3,"featured_media":998186,"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\/998182"}],"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=998182"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/998182\/revisions"}],"predecessor-version":[{"id":998188,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/998182\/revisions\/998188"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/998186"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=998182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=998182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=998182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}