{"id":173330,"date":"2024-05-08T18:09:10","date_gmt":"2024-05-08T10:09:10","guid":{"rendered":""},"modified":"2024-05-08T18:09:16","modified_gmt":"2024-05-08T10:09:16","slug":"python%e5%b0%81%e8%a3%85%e6%88%90exe%e5%90%8e%e8%bf%90%e8%a1%8c%e6%97%b6%e8%bf%98%e9%9c%80%e8%a6%81%e7%94%b5%e8%84%91%e5%ae%89%e8%a3%85%e6%89%80%e7%94%a8%e6%a8%a1%e5%9d%97%e5%90%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/173330.html","title":{"rendered":"python\u5c01\u88c5\u6210exe\u540e\u8fd0\u884c\u65f6\u8fd8\u9700\u8981\u7535\u8111\u5b89\u88c5\u6240\u7528\u6a21\u5757\u5417"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27045225\/fbc72a18-2e02-4e2b-b0b5-79e4a8e828bd.webp\" alt=\"python\u5c01\u88c5\u6210exe\u540e\u8fd0\u884c\u65f6\u8fd8\u9700\u8981\u7535\u8111\u5b89\u88c5\u6240\u7528\u6a21\u5757\u5417\" \/><\/p>\n<p><p><strong>Python\u5c01\u88c5\u6210exe\u540e\u4e0d\u9700\u8981\u7535\u8111\u5b89\u88c5\u6240\u7528\u6a21\u5757<\/strong>\uff0c\u56e0\u4e3a\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0c\u76f8\u5173\u7684\u4f9d\u8d56\u90fd\u4f1a\u88ab\u96c6\u6210\u5728\u751f\u6210\u7684exe\u6587\u4ef6\u91cc\u3002\u6253\u5305\u5de5\u5177\uff0c\u5982PyInstaller\u3001py2exe\u3001cx_Freeze\u7b49\uff0c\u4f1a\u5c06Python\u811a\u672c\u3001\u6240\u4f9d\u8d56\u7684\u6a21\u5757\u4ee5\u53ca\u89e3\u91ca\u5668\u6253\u5305\u5230\u4e00\u8d77\uff0c\u521b\u5efa\u4e00\u4e2a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u5e94\u7528\u7a0b\u5e8f\u3002\u56e0\u6b64\uff0c\u5f53\u60a8\u5c06\u7a0b\u5e8f\u5c01\u88c5\u6210exe\u6587\u4ef6\u65f6\uff0c\u5176\u4ed6\u7535\u8111\u65e0\u9700\u989d\u5916\u5b89\u88c5Python\u6216\u8005\u5176\u4ed6\u6a21\u5757\uff0c\u5c31\u53ef\u4ee5\u8fd0\u884c\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><p>PyInstaller\u662f\u4e00\u4e2a\u5e38\u7528\u7684\u6253\u5305\u5de5\u5177\uff0c\u5b83\u901a\u8fc7\u5206\u6790\u60a8\u7684Python\u7a0b\u5e8f\u6765\u786e\u5b9a\u7a0b\u5e8f\u8fd0\u884c\u6240\u4f9d\u8d56\u7684\u6240\u6709\u8d44\u6e90\uff0c\u5e76\u5c06\u8fd9\u4e9b\u8d44\u6e90\u6253\u5305\u81f3\u5355\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\u4e2d\u3002\u8be5\u8fc7\u7a0b\u79f0\u4e3a\u201c\u51bb\u7ed3\u201dPython\u5e94\u7528\u3002\u5728\u8fd0\u884cexe\u65f6\uff0cPyInstaller\u4f1a\u521b\u5efa\u4e00\u4e2a\u4e34\u65f6\u73af\u5883\uff0c\u89e3\u538b\u6240\u9700\u7684\u6587\u4ef6\uff0c\u4f7f\u7a0b\u5e8f\u80fd\u5728\u6ca1\u6709\u5b89\u88c5Python\u89e3\u91ca\u5668\u7684\u73af\u5883\u4e0b\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u6253\u5305\u8fc7\u7a0b\u4e0e\u539f\u7406<\/h2>\n<\/p>\n<p><p>\u5728\u6df1\u5165\u4e86\u89e3\u5982\u4f55\u5c06Python\u7a0b\u5e8f\u6253\u5305\u6210exe\u6587\u4ef6\u4e4b\u524d\uff0c\u9996\u5148\u8981\u4e86\u89e3\u6253\u5305\u5de5\u5177\u7684\u57fa\u672c\u5de5\u4f5c\u539f\u7406\u3002\u6253\u5305\u7a0b\u5e8f\u901a\u5e38\u4f1a\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h3>\u5c01\u88c5\u6d41\u7a0b<\/h3>\n<\/p>\n<ul>\n<li><strong>\u6536\u96c6\u4f9d\u8d56<\/strong>\uff1a\u5de5\u5177\u5206\u6790Python\u811a\u672c\uff0c\u627e\u51fa\u6240\u6709\u5bfc\u5165\u7684\u6a21\u5757\u53ca\u5176\u4f9d\u8d56\u3002<\/li>\n<li><strong>\u7f16\u8bd1\u5b57\u8282\u7801<\/strong>\uff1a\u5c06Python\u811a\u672c\u7f16\u8bd1\u6210\u5b57\u8282\u7801\uff08.pyc\u6587\u4ef6\uff09\u3002<\/li>\n<li><strong>\u521b\u5efa\u8fd0\u884c\u73af\u5883<\/strong>\uff1a\u5c06\u7f16\u8bd1\u540e\u7684\u5b57\u8282\u7801\u3001Python\u89e3\u91ca\u5668\u4ee5\u53ca\u5fc5\u987b\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u3001\u5e93\u6587\u4ef6\u3001\u8d44\u6e90\u6587\u4ef6\u7b49\u5305\u542b\u8fdb\u6253\u5305\u6587\u4ef6\u3002<\/li>\n<li><strong>\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6<\/strong>\uff1a\u6240\u6709\u8fd9\u4e9b\u8d44\u6e90\u88ab\u6253\u5305\u6210\u4e00\u4e2aexe\u6587\u4ef6\uff0c\u5b83\u5305\u62ec\u4e86\u542f\u52a8\u7a0b\u5e8f\u6240\u9700\u7684\u4e00\u5207\u3002<\/li>\n<\/ul>\n<p><h3>\u51bb\u7ed3\u5e94\u7528<\/h3>\n<\/p>\n<p><p>\u5f53\u7528\u6237\u8fd0\u884c\u6253\u5305\u540e\u7684exe\u6587\u4ef6\u65f6\uff0c\u7a0b\u5e8f\u5b9e\u9645\u4e0a\u5728\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u89e3\u538b\u8d44\u6e90<\/strong>\uff1a\u5c06\u6240\u6709\u5fc5\u8981\u7684\u6587\u4ef6\u89e3\u538b\u5230\u4e34\u65f6\u6587\u4ef6\u5939\u3002<\/li>\n<li><strong>\u521b\u5efa\u8fd0\u884c\u5b9e\u4f8b<\/strong>\uff1a\u5728\u6b64\u4e34\u65f6\u6587\u4ef6\u5939\u4e2d\u8fd0\u884c\u7a0b\u5e8f\uff0c\u4eff\u4f5b\u5728\u6709Python\u73af\u5883\u7684\u6b63\u5e38\u60c5\u51b5\u4e0b\u8fd0\u884c\u3002<\/li>\n<li><strong>\u6267\u884c\u7a0b\u5e8f<\/strong>\uff1a\u7528\u6237\u4e0e\u7a0b\u5e8f\u7684\u4ea4\u4e92\u5c31\u50cf\u5728Python\u89e3\u91ca\u5668\u4e2d\u8fd0\u884c\u811a\u672c\u4e00\u6837\u3002<\/li>\n<\/ul>\n<p><h2>\u4e8c\u3001\u4f7f\u7528PyInstaller\u6253\u5305<\/h2>\n<\/p>\n<p><p>\u4ee5PyInstaller\u4e3a\u4f8b\uff0c\u4e0b\u9762\u662f\u6253\u5305Python\u7a0b\u5e8f\u7684\u57fa\u672c\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h3>\u5b89\u88c5PyInstaller<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5PyInstaller\uff1a<\/p>\n<\/p>\n<p><pre><code>pip install pyinstaller<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u6267\u884c\u6253\u5305\u547d\u4ee4<\/h3>\n<\/p>\n<p><p>\u7136\u540e\u4f7f\u7528PyInstaller\u8fdb\u884c\u6253\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code>pyinstaller --onefile your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\u4f7f\u7528\u4e86<code>--onefile<\/code>\u53c2\u6570\uff0c\u5b83\u6307\u793aPyInstaller\u5c06\u6240\u6709\u4e1c\u897f\u6253\u5305\u6210\u5355\u4e2aexe\u6587\u4ef6\u3002\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u53c2\u6570\u6765\u81ea\u5b9a\u4e49\u6253\u5305\u8fc7\u7a0b\uff0c\u4f8b\u5982\u6307\u5b9a\u56fe\u6807<code>--icon=app.ico<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u6d4b\u8bd5\u6253\u5305\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><p>\u6253\u5305\u5b8c\u6210\u540e\uff0c\u5728<code>dist<\/code>\u6587\u4ef6\u5939\u4e2d\u627e\u5230\u751f\u6210\u7684exe\u6587\u4ef6\uff0c\u5e76\u5728\u4e0d\u540c\u7535\u8111\u4e0a\u8fdb\u884c\u6d4b\u8bd5\uff0c\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u80fd\u5982\u9884\u671f\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u6ce8\u610f\u4e8b\u9879\u4e0e\u5e38\u89c1\u95ee\u9898<\/h2>\n<\/p>\n<p><p>\u867d\u7136\u6253\u5305\u540e\u7684\u7a0b\u5e8f\u7406\u8bba\u4e0a\u4e0d\u9700\u8981\u5b89\u88c5\u989d\u5916\u7684\u6a21\u5757\uff0c\u4f46\u5728\u5b9e\u8df5\u4e2d\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u95ee\u9898\uff0c\u9700\u8981\u989d\u5916\u5173\u6ce8\uff1a<\/p>\n<\/p>\n<p><h3>\u52a8\u6001\u52a0\u8f7d\u6a21\u5757<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u7a0b\u5e8f\u4f7f\u7528\u4e86\u52a8\u6001\u5bfc\u5165\uff08\u4f8b\u5982\u4f7f\u7528<code>__import__<\/code>\u51fd\u6570\uff09\uff0c\u6253\u5305\u5de5\u5177\u53ef\u80fd\u65e0\u6cd5\u6b63\u786e\u8bc6\u522b\u8fd9\u4e9b\u4f9d\u8d56\uff0c\u5bfc\u81f4\u7f3a\u5c11\u6a21\u5757\u3002\u8fd9\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u6dfb\u52a0\u989d\u5916\u7684\u6253\u5305\u6307\u4ee4\u6765\u624b\u52a8\u6307\u5b9a\u90a3\u4e9b\u6a21\u5757\u3002<\/p>\n<\/p>\n<p><h3>\u7cfb\u7edf\u76f8\u5173\u8d44\u6e90<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u7a0b\u5e8f\u4f9d\u8d56\u4e86\u7279\u5b9a\u64cd\u4f5c\u7cfb\u7edf\u7684\u8d44\u6e90\u6216\u5e93\uff0c\u53ef\u80fd\u9700\u8981\u786e\u4fdd\u6253\u5305\u5de5\u5177\u6b63\u786e\u5730\u5305\u542b\u4e86\u8fd9\u4e9b\u8d44\u6e90\uff0c\u5426\u5219\u5728\u76ee\u6807\u7cfb\u7edf\u4e0a\u53ef\u80fd\u65e0\u6cd5\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><h3>\u6253\u5305\u4f53\u79ef<\/h3>\n<\/p>\n<p><p>\u6253\u5305\u540e\u7684exe\u6587\u4ef6\u53ef\u80fd\u4f1a\u975e\u5e38\u5927\uff0c\u56e0\u4e3a\u6240\u6709\u4f9d\u8d56\u90fd\u88ab\u5305\u62ec\u5728\u5185\u3002\u53ef\u4ee5\u4f7f\u7528<code>UPX<\/code>\u8fd9\u6837\u7684\u8f6f\u4ef6\u538b\u7f29\u6700\u7ec8\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u51cf\u5c11\u5176\u4f53\u79ef\u3002<\/p>\n<\/p>\n<p><h3>\u53cd\u75c5\u6bd2\u8f6f\u4ef6\u8b66\u544a<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u53cd\u75c5\u6bd2\u8f6f\u4ef6\u4f1a\u9519\u8bef\u5730\u5c06\u6253\u5305\u7684exe\u6587\u4ef6\u8bc6\u522b\u4e3a\u6076\u610f\u8f6f\u4ef6\uff0c\u8fd9\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4e00\u4e9b\u95ee\u9898\u3002\u60a8\u53ef\u80fd\u9700\u8981\u5c06\u60a8\u7684\u7a0b\u5e8f\u6dfb\u52a0\u5230\u5141\u8bb8\u5217\u8868\u6216\u7b7e\u7f72\u60a8\u7684exe\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u5b9e\u9645\u6848\u4f8b<\/h2>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\u662f\u4e00\u4e9b\u5177\u4f53\u7684\u4f8b\u5b50\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u5904\u7406\u6253\u5305\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u624b\u52a8\u6307\u5b9a\u9690\u85cf\u7684\u5bfc\u5165<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u60a8\u7684\u7a0b\u5e8f\u4f7f\u7528\u4e86\u9690\u85cf\u7684import\u58f0\u660e\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u5728\u6253\u5305\u65f6\u6307\u793aPyInstaller\u5305\u62ec\u8fd9\u4e9b\u6a21\u5757\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u7f16\u8f91<code>.spec<\/code>\u6587\u4ef6\u6216\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528<code>--hidden-import<\/code>\u53c2\u6570\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><h3>\u907f\u514d\u8d44\u6e90\u4e22\u5931<\/h3>\n<\/p>\n<p><p>\u786e\u4fdd\u7a0b\u5e8f\u4e2d\u7528\u5230\u7684\u6240\u6709\u5916\u90e8\u8d44\u6e90\uff08\u5982\u56fe\u50cf\u3001\u6570\u636e\u6587\u4ef6\u7b49\uff09\u90fd\u5305\u542b\u5728\u6253\u5305\u6587\u4ef6\u4e2d\u3002\u4f7f\u7528<code>--add-data<\/code>\u53c2\u6570\u53ef\u4ee5\u5c06\u8fd9\u4e9b\u8d44\u6e90\u6587\u4ef6\u5305\u62ec\u8fdb\u6765\u3002<\/p>\n<\/p>\n<p><p>\u6253\u5305Python\u7a0b\u5e8f\u5230exe\u6587\u4ef6\u662f\u4e00\u4e2a\u65b9\u4fbf\u7684\u65b9\u5f0f\uff0c\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u5728\u6ca1\u6709Python\u73af\u5883\u7684\u7535\u8111\u4e0a\u4e5f\u80fd\u8fd0\u884c\u3002\u968f\u7740\u6280\u672f\u7684\u53d1\u5c55\uff0c\u6253\u5305\u5de5\u5177\u4e5f\u5728\u4e0d\u65ad\u63d0\u5347\u5176\u6613\u7528\u6027\u548c\u517c\u5bb9\u6027\uff0c\u8ba9\u8fd9\u4e00\u8fc7\u7a0b\u53d8\u5f97\u66f4\u52a0\u7b80\u5355\u76f4\u89c2\u3002\u901a\u8fc7\u9075\u5faa\u6b63\u786e\u7684\u6253\u5305\u6d41\u7a0b\u5e76\u6ce8\u610f\u53ef\u80fd\u51fa\u73b0\u7684\u95ee\u9898\uff0c\u60a8\u53ef\u4ee5\u521b\u5efa\u51fa\u65e2\u72ec\u7acb\u53c8\u7a33\u5b9a\u7684Python\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u9700\u8981\u4e3aPython\u7a0b\u5e8f\u5c01\u88c5\u6210exe\u6587\u4ef6\u540e\uff0c\u5728\u5176\u4ed6\u7535\u8111\u4e0a\u8fd0\u884c\u65f6\u662f\u5426\u9700\u8981\u5b89\u88c5\u76f8\u5e94\u7684\u6a21\u5757\uff1f<\/strong><\/p>\n<p>\u5f53\u4f7f\u7528Pyinstaller\u6216\u5176\u4ed6\u5de5\u5177\u5c06Python\u7a0b\u5e8f\u5c01\u88c5\u6210exe\u6587\u4ef6\u540e\uff0c\u5728\u5176\u4ed6\u7535\u8111\u4e0a\u8fd0\u884c\u65f6\uff0c\u901a\u5e38\u4e0d\u9700\u8981\u989d\u5916\u5b89\u88c5\u6240\u7528\u6a21\u5757\u3002\u5c01\u88c5\u8fc7\u7a0b\u4f1a\u5c06\u7a0b\u5e8f\u6240\u4f9d\u8d56\u7684\u6a21\u5757\u548c\u89e3\u91ca\u5668\u6253\u5305\u5728\u4e00\u8d77\uff0c\u4f7f\u5f97\u5176\u4ed6\u7535\u8111\u65e0\u9700\u518d\u6b21\u5b89\u88c5\u8fd9\u4e9b\u6a21\u5757\u3002\u8fd9\u610f\u5473\u7740\u4f60\u53ef\u4ee5\u65b9\u4fbf\u5730\u5728\u5176\u4ed6\u7535\u8111\u4e0a\u8fd0\u884c\u4f60\u7684\u7a0b\u5e8f\uff0c\u800c\u65e0\u9700\u62c5\u5fc3\u5176\u5b83\u7528\u6237\u6ca1\u6709\u5b89\u88c5\u6240\u9700\u7684\u6a21\u5757\u3002<\/p>\n<p><strong>2. \u5c01\u88c5\u6210exe\u6587\u4ef6\u540e\uff0c\u662f\u5426\u8fd8\u9700\u8981\u5c06\u6240\u7528\u6a21\u5757\u4e00\u540c\u6253\u5305\u5230\u7a0b\u5e8f\u4e2d\uff1f<\/strong><\/p>\n<p>\u662f\u7684\uff0c\u5f53\u5c06Python\u7a0b\u5e8f\u5c01\u88c5\u6210exe\u6587\u4ef6\u540e\uff0c\u4f60\u5e94\u8be5\u5c06\u6240\u7528\u6a21\u5757\u4e00\u540c\u6253\u5305\u5230\u7a0b\u5e8f\u4e2d\u3002\u5c01\u88c5\u8fc7\u7a0b\u4f1a\u5c06\u7a0b\u5e8f\u6240\u4f9d\u8d56\u7684\u6a21\u5757\u81ea\u52a8\u68c0\u6d4b\u5e76\u6253\u5305\u5728\u4e00\u8d77\uff0c\u786e\u4fdd\u7a0b\u5e8f\u5728\u5176\u4ed6\u7535\u8111\u4e0a\u80fd\u6b63\u5e38\u8fd0\u884c\u3002\u8fd9\u6837\u505a\u7684\u597d\u5904\u662f\u4fdd\u8bc1\u7a0b\u5e8f\u7684\u53ef\u79fb\u690d\u6027\uff0c\u65e0\u9700\u7528\u6237\u624b\u52a8\u5b89\u88c5\u6240\u9700\u6a21\u5757\uff0c\u51cf\u5c11\u4e86\u7528\u6237\u7684\u64cd\u4f5c\u590d\u6742\u5ea6\u3002<\/p>\n<p><strong>3. \u5f53\u5c01\u88c5\u7a0b\u5e8f\u9700\u8981\u7684\u6a21\u5757\u5230exe\u6587\u4ef6\u4e2d\u540e\uff0c\u5728\u5176\u4ed6\u7535\u8111\u4e0a\u662f\u5426\u8fd8\u9700\u8981\u8fdb\u884c\u5176\u4ed6\u914d\u7f6e\uff1f<\/strong><\/p>\n<p>\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u5728\u5176\u4ed6\u7535\u8111\u4e0a\u8fd0\u884c\u5c01\u88c5\u597d\u7684exe\u6587\u4ef6\u65f6\u4e0d\u9700\u8981\u8fdb\u884c\u5176\u4ed6\u914d\u7f6e\u3002\u5c01\u88c5\u8fc7\u7a0b\u4f1a\u5c06\u7a0b\u5e8f\u6240\u9700\u7684\u6a21\u5757\u548c\u4f9d\u8d56\u9879\u4e00\u540c\u6253\u5305\uff0c\u786e\u4fdd\u7a0b\u5e8f\u53ef\u4ee5\u72ec\u7acb\u8fd0\u884c\u3002\u7136\u800c\uff0c\u5982\u679c\u4f60\u7684\u7a0b\u5e8f\u9700\u8981\u8bbf\u95ee\u7279\u5b9a\u7684\u8d44\u6e90\u6216\u914d\u7f6e\u6587\u4ef6\uff0c\u53ef\u80fd\u9700\u8981\u5728\u5176\u4ed6\u7535\u8111\u4e0a\u8fdb\u884c\u76f8\u5e94\u7684\u8def\u5f84\u914d\u7f6e\u6216\u624b\u52a8\u6dfb\u52a0\u8fd9\u4e9b\u8d44\u6e90\u6587\u4ef6\u3002\u8fd9\u53d6\u51b3\u4e8e\u4f60\u7684\u7a0b\u5e8f\u6240\u4f7f\u7528\u7684\u8d44\u6e90\u548c\u4f9d\u8d56\u9879\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5c01\u88c5\u6210exe\u540e\u4e0d\u9700\u8981\u7535\u8111\u5b89\u88c5\u6240\u7528\u6a21\u5757\uff0c\u56e0\u4e3a\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0c\u76f8\u5173\u7684\u4f9d\u8d56\u90fd\u4f1a\u88ab\u96c6\u6210\u5728\u751f\u6210\u7684exe\u6587\u4ef6\u91cc\u3002\u6253 [&hellip;]","protected":false},"author":3,"featured_media":173340,"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\/173330"}],"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=173330"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/173330\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/173340"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=173330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=173330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=173330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}