{"id":301785,"date":"2024-05-20T18:17:45","date_gmt":"2024-05-20T10:17:45","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/301785.html"},"modified":"2024-05-20T18:17:56","modified_gmt":"2024-05-20T10:17:56","slug":"python3-4%e5%86%99%e5%a5%bd%e7%9a%84-py%e6%96%87%e4%bb%b6%e5%a6%82%e4%bd%95%e6%89%93%e5%8c%85%e6%88%90exe-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/301785.html","title":{"rendered":"python3.4\u5199\u597d\u7684.py\u6587\u4ef6\u5982\u4f55\u6253\u5305\u6210exe"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/26214050\/7aaad930-2f94-4851-b9ac-5e49921305d8.webp\" alt=\"python3.4\u5199\u597d\u7684.py\u6587\u4ef6\u5982\u4f55\u6253\u5305\u6210exe\" \/><\/p>\n<p><p><strong>Python3.4\u7f16\u5199\u7684.py\u6587\u4ef6\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u5de5\u5177\u6253\u5305\u6210exe\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u4f8b\u5982PyInstaller\u3001cx_Freeze\u3001py2exe\u7b49\u3002\u5176\u4e2d\uff0cPyInstaller\u662f\u6d41\u884c\u7684\u9009\u62e9\u3001\u5b83\u652f\u6301\u8de8\u5e73\u53f0\u6253\u5305\u3001\u53ef\u4ee5\u751f\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528PyInstaller\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u786e\u4fdd\u8be5\u5de5\u5177\u5df2\u7ecf\u5b89\u88c5\u5728\u4f60\u7684\u7cfb\u7edf\u4e0a\u3002\u53ef\u4ee5\u901a\u8fc7pip\u547d\u4ee4\u7b80\u5355\u5b89\u88c5\uff1a<code>pip install pyinstaller<\/code>\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u53ea\u9700\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884cPyInstaller\u5e76\u6307\u5b9a\u4f60\u7684\u811a\u672c\u6587\u4ef6\uff0cPyInstaller\u4f1a\u5206\u6790\u4f60\u7684\u4ee3\u7801\u5e76\u6536\u96c6\u6240\u9700\u7684\u6240\u6709\u4f9d\u8d56\u9879\u548c\u5e93\u6587\u4ef6\uff0c\u6700\u7ec8\u751f\u6210\u4e00\u4e2a\u53ef\u5728\u6ca1\u6709\u5b89\u88c5Python\u7684\u8ba1\u7b97\u673a\u4e0a\u8fd0\u884c\u7684exe\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b89\u88c5PyInstaller<\/h3>\n<\/p>\n<p><p>\u5728\u6253\u5305.py\u6587\u4ef6\u4e4b\u524d\uff0c\u786e\u4fdd\u5728\u4f60\u7684\u7cfb\u7edf\u4e2d\u5b89\u88c5\u4e86PyInstaller\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\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\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u547d\u4ee4\u68c0\u67e5PyInstaller\u7684\u7248\u672c\u4ee5\u786e\u4fdd\u5b83\u6b63\u786e\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pyinstaller --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u57fa\u672c\u6253\u5305\u8fc7\u7a0b<\/h3>\n<\/p>\n<p><p>\u4e00\u65e6\u5b89\u88c5\u4e86PyInstaller\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u6253\u5305\u4f60\u7684.py\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\u4f1a\u751f\u6210\u4e00\u4e2a&#039;dist&#039;\u6587\u4ef6\u5939\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u53ef\u6267\u884c\u7684exe\u6587\u4ef6\u4ee5\u53ca\u5fc5\u987b\u7684\u52a8\u6001\u94fe\u63a5\u5e93\uff08DLLs\uff09\u548c\u5176\u4ed6\u652f\u6301\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u9ad8\u7ea7\u6253\u5305\u9009\u9879<\/h3>\n<\/p>\n<p><p>PyInstaller\u4e5f\u63d0\u4f9b\u4e86\u8bb8\u591a\u9009\u9879\uff0c\u5141\u8bb8\u4f60\u5b9a\u5236\u6253\u5305\u8fc7\u7a0b\uff1a<\/p>\n<\/p>\n<ul>\n<li><code>--onefile<\/code> \u521b\u5efa\u5355\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/li>\n<li><code>--windowed<\/code> \u4e3aGUI\u5e94\u7528\u7a0b\u5e8f\u751f\u6210\u6ca1\u6709\u63a7\u5236\u53f0\u7a97\u53e3\u7684exe\u6587\u4ef6\u3002<\/li>\n<li><code>--icon<\/code> \u81ea\u5b9a\u4e49exe\u6587\u4ef6\u7684\u56fe\u6807\u3002<\/li>\n<\/ul>\n<p><p>\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u60f3\u521b\u5efa\u4e00\u4e2a\u5355\u6587\u4ef6\u5e76\u6307\u5b9a\u4e00\u4e2a\u56fe\u6807\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pyinstaller --onefile --icon=app.ico your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u6253\u5305\u5e26\u6709\u7b2c\u4e09\u65b9\u5e93\u7684\u811a\u672c<\/h3>\n<\/p>\n<p><p>\u5f53\u4f60\u7684\u811a\u672c\u4f7f\u7528\u4e86\u7b2c\u4e09\u65b9\u5e93\u65f6\uff0cPyInstaller\u4f1a\u5c1d\u8bd5\u627e\u5230\u5e76\u5305\u542b\u8fd9\u4e9b\u4f9d\u8d56\u3002\u7136\u800c\uff0c\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u624b\u52a8\u544a\u77e5PyInstaller\u54ea\u4e9b\u989d\u5916\u7684\u6587\u4ef6\u6216\u76ee\u5f55\u9700\u8981\u5305\u62ec\u5728\u5185\u3002\u53ef\u4ee5\u901a\u8fc7<code>--add-data<\/code>\u9009\u9879\u6765\u5b9e\u73b0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pyinstaller --add-data &#039;src;dest&#039; your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc&#039;src&#039;\u662f\u4f60\u8981\u6dfb\u52a0\u7684\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u8def\u5f84\uff0c&#039;dest&#039;\u662f\u8fd9\u4e9b\u6587\u4ef6\u5e94\u8be5\u4f4d\u4e8eexe\u5305\u4e2d\u7684\u76f8\u5bf9\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5904\u7406\u6253\u5305\u540e\u7684\u9519\u8bef<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u5019\u5728\u6253\u5305\u4e4b\u540e\uff0cexe\u6587\u4ef6\u8fd0\u884c\u65f6\u53ef\u80fd\u4f1a\u51fa\u73b0\u9519\u8bef\u3002\u8fd9\u53ef\u80fd\u662f\u56e0\u4e3a\u7f3a\u5c11\u6587\u4ef6\u3001\u4e0d\u517c\u5bb9\u7684\u5e93\u7248\u672c\u6216\u5176\u4ed6\u539f\u56e0\u9020\u6210\u7684\u3002\u4e00\u822c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u68c0\u67e5PyInstaller\u7684\u8b66\u544a\u548c\u9519\u8bef\u65e5\u5fd7\u3002<\/li>\n<li>\u5bf9\u4e8e\u627e\u4e0d\u5230\u7684DLL\u6216\u6a21\u5757\uff0c\u786e\u4fdd\u5b83\u4eec\u5df2\u7ecf\u88abPyInstaller\u5305\u62ec\u5728\u5185\uff0c\u6216\u8005\u68c0\u67e5\u662f\u5426\u5b58\u5728\u8def\u5f84\u95ee\u9898\u3002<\/li>\n<li>\u5982\u679c\u95ee\u9898\u4f9d\u7136\u5b58\u5728\uff0c\u5c1d\u8bd5\u521b\u5efa\u4e00\u4e2a\u865a\u62df\u73af\u5883\uff0c\u5e76\u5728\u8be5\u73af\u5883\u4e2d\u91cd\u65b0\u6253\u5305\u3002<\/li>\n<\/ul>\n<p><h3>\u516d\u3001\u4f18\u5316\u4f60\u7684EXE\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u6253\u5305\u5b8c\u6210\u540e\uff0c\u4f60\u53ef\u80fd\u4f1a\u60f3\u8981\u51cf\u5c0f\u6700\u7ec8exe\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u8fd9\u91cc\u6709\u51e0\u4e2a\u6280\u5de7\u53ef\u4ee5\u5b9e\u73b0\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u4f7f\u7528<code>--onefile<\/code>\u9009\u9879\u4ee5\u751f\u6210\u5355\u4e2a\u6587\u4ef6\u3002<\/li>\n<li>\u79fb\u9664\u4e0d\u5fc5\u8981\u7684\u7b2c\u4e09\u65b9\u5e93\u3002<\/li>\n<li>\u4f7f\u7528UPX\uff08Ultimate Packer for eXecutables\uff09\u538b\u7f29\u4f60\u7684exe\u6587\u4ef6\uff08PyInstaller\u652f\u6301UPX\uff09\u3002<\/li>\n<\/ul>\n<p><h3>\u4e03\u3001\u6700\u7ec8\u68c0\u67e5\u548c\u53d1\u5e03<\/h3>\n<\/p>\n<p><p>\u5728\u53d1\u5e03exe\u6587\u4ef6\u4e4b\u524d\uff0c\u52a1\u5fc5\u5728\u7c7b\u4f3c\u7684\u6ca1\u6709\u5b89\u88c5Python\u7684\u73af\u5883\u4e2d\u8fdb\u884c\u6d4b\u8bd5\u3002\u786e\u4fdd\u7a0b\u5e8f\u53ef\u4ee5\u6b63\u786e\u8fd0\u884c\uff0cUI\u663e\u793a\u6b63\u5e38\uff0c\u5e76\u4e14\u6240\u6709\u529f\u80fd\u90fd\u80fd\u5982\u9884\u671f\u5de5\u4f5c\u3002<\/p>\n<\/p>\n<p><p><strong>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u53ef\u4ee5\u5c06Python3.4\u7f16\u5199\u7684.py\u6587\u4ef6\u6210\u529f\u6253\u5305\u6210\u9002\u7528\u4e8eWindows\u7684exe\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u4fbf\u4e8e\u5206\u53d1\u548c\u90e8\u7f72\u3002<\/strong><\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5982\u4f55\u5c06Python 3.4\u5199\u597d\u7684.py\u6587\u4ef6\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff08exe\uff09\uff1f<\/strong><\/p>\n<p>\u5982\u679c\u4f60\u60f3\u5c06Python 3.4\u5199\u597d\u7684.py\u6587\u4ef6\u6253\u5305\u6210exe\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528PyInstaller\u5de5\u5177\u3002PyInstaller\u662f\u4e00\u4e2a\u6d41\u884c\u7684Python\u5e93\uff0c\u53ef\u4ee5\u5c06Python\u7a0b\u5e8f\u5feb\u901f\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u5bf9\u8fd0\u884c\u73af\u5883\u7684\u4f9d\u8d56\u8f83\u5c11\u3002<\/p>\n<p>\u4f60\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u6765\u5b9e\u73b0\uff1a<\/p>\n<p>a. \u9996\u5148\uff0c\u786e\u4fdd\u4f60\u5df2\u7ecf\u5b89\u88c5\u4e86Python 3.4\u7248\u672c\u4ee5\u53caPyInstaller\u5e93\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5728\u547d\u4ee4\u884c\u4e2d\u8fdb\u884c\u5b89\u88c5\uff1a<code>pip3 install pyinstaller<\/code><\/p>\n<p>b. \u7136\u540e\uff0c\u6253\u5f00\u547d\u4ee4\u884c\u7ec8\u7aef\uff0c\u5e76\u5207\u6362\u5230\u4f60\u7684.py\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\u3002<\/p>\n<p>c. \u63a5\u7740\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<code>pyinstaller your_script_name.py<\/code>\uff08\u5c06&quot;your_script_name.py&quot;\u66ff\u6362\u6210\u4f60\u7684.py\u6587\u4ef6\u540d\uff09<\/p>\n<p>d. \u7b49\u5f85PyInstaller\u5b8c\u6210\u6253\u5305\u8fc7\u7a0b\u3002\u4e00\u65e6\u6253\u5305\u5b8c\u6210\uff0c\u4f60\u4f1a\u5728\u540c\u4e00\u4e2a\u76ee\u5f55\u4e2d\u627e\u5230\u4e00\u4e2a\u65b0\u7684&quot;dist&quot;\u6587\u4ef6\u5939\uff0c\u91cc\u9762\u5305\u542b\u4e86\u6253\u5305\u597d\u7684exe\u6587\u4ef6\u3002<\/p>\n<p>\u8bf7\u6ce8\u610f\uff0c\u867d\u7136PyInstaller\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u5de5\u5177\uff0c\u4f46\u7531\u4e8e\u4e0d\u540c\u7684Python\u7248\u672c\u548c\u7b2c\u4e09\u65b9\u5e93\u4e4b\u95f4\u7684\u5dee\u5f02\uff0c\u53ef\u80fd\u4f1a\u51fa\u73b0\u4e00\u4e9b\u6253\u5305\u8fc7\u7a0b\u4e2d\u7684\u95ee\u9898\u3002\u5982\u679c\u4f60\u9047\u5230\u4e86\u95ee\u9898\uff0c\u53ef\u4ee5\u53c2\u8003PyInstaller\u7684\u5b98\u65b9\u6587\u6863\u6216\u8005\u5728\u5404\u79cd\u5f00\u53d1\u8005\u793e\u533a\u4e2d\u67e5\u627e\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<p><strong>2. \u6211\u4f7f\u7528Python 3.4\u5199\u597d\u4e86\u4e00\u4e2a.py\u6587\u4ef6\uff0c\u73b0\u5728\u60f3\u5c06\u5b83\u8f6c\u6362\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u6709\u4ec0\u4e48\u65b9\u6cd5\u53ef\u4ee5\u5b9e\u73b0\uff1f<\/strong><\/p>\n<p>\u5982\u679c\u4f60\u60f3\u5c06Python 3.4\u5199\u597d\u7684.py\u6587\u4ef6\u8f6c\u6362\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5de5\u5177\u6765\u5b9e\u73b0\uff0c\u5982PyInstaller\u3001py2exe\u6216cx_Freeze\u7b49\u3002<\/p>\n<ul>\n<li>PyInstaller\uff1a\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5c06Python\u7a0b\u5e8f\u5feb\u901f\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u5bf9\u8fd0\u884c\u73af\u5883\u7684\u4f9d\u8d56\u8f83\u5c11\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528pip\u547d\u4ee4\u5b89\u88c5\uff1a<code>pip install pyinstaller<\/code>\uff0c\u7136\u540e\u5728\u7ec8\u7aef\u4e2d\u6267\u884c<code>pyinstaller your_script.py<\/code>\u6765\u8fdb\u884c\u6253\u5305\u3002<\/li>\n<li>py2exe\uff1a\u8fd9\u4e2a\u5de5\u5177\u53ef\u4ee5\u5c06Python\u811a\u672c\u8f6c\u6362\u6210Windows\u53ef\u6267\u884c\u6587\u4ef6\uff08exe\uff09\uff0c\u9002\u7528\u4e8ePython 2.x\u7248\u672c\u3002\u8be6\u7ec6\u7684\u5b89\u88c5\u548c\u4f7f\u7528\u6b65\u9aa4\u8bf7\u53c2\u8003\u5b98\u65b9\u6587\u6863\u3002<\/li>\n<li>cx_Freeze\uff1a\u8fd9\u662f\u53e6\u4e00\u4e2a\u5c06Python\u811a\u672c\u8f6c\u6362\u6210\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5de5\u5177\uff0c\u9002\u7528\u4e8e\u5404\u79cd\u64cd\u4f5c\u7cfb\u7edf\u5e73\u53f0\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528pip\u547d\u4ee4\u5b89\u88c5\uff1a<code>pip install cx-freeze<\/code>\uff0c\u7136\u540e\u6839\u636e\u5b98\u65b9\u6587\u6863\u4e2d\u7684\u6307\u5bfc\u8fdb\u884c\u4f7f\u7528\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u5de5\u5177\u5404\u6709\u7279\u70b9\uff0c\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u60c5\u51b5\u548c\u9700\u6c42\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u8981\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u8fdb\u884c\u8f6c\u6362\u3002<\/p>\n<p><strong>3. \u5c06Python 3.4\u5199\u597d\u7684.py\u6587\u4ef6\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\u6709\u4ec0\u4e48\u597d\u5904\uff1f\u5982\u4f55\u5b9e\u73b0\uff1f<\/strong><\/p>\n<p>\u5c06Python 3.4\u5199\u597d\u7684.py\u6587\u4ef6\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff08exe\uff09\u6709\u4e00\u4e9b\u597d\u5904\uff1a<\/p>\n<ul>\n<li>\u79fb\u690d\u6027\uff1a\u5c06Python\u811a\u672c\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\u540e\uff0c\u4e0d\u9700\u8981\u5b89\u88c5Python\u89e3\u91ca\u5668\u548c\u76f8\u5173\u4f9d\u8d56\u5e93\uff0c\u53ef\u4ee5\u5728\u5176\u4ed6\u7535\u8111\u4e0a\u76f4\u63a5\u8fd0\u884c\uff0c\u66f4\u52a0\u65b9\u4fbf\u548c\u4fbf\u643a\u3002<\/li>\n<li>\u4fdd\u62a4\u6e90\u4ee3\u7801\uff1a\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\u540e\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u9690\u85cf\u6e90\u4ee3\u7801\uff0c\u4fdd\u62a4\u4f60\u7684\u77e5\u8bc6\u4ea7\u6743\uff0c\u907f\u514d\u88ab\u4ed6\u4eba\u4fee\u6539\u6216\u590d\u5236\u3002<\/li>\n<li>\u66f4\u597d\u7684\u7528\u6237\u4f53\u9a8c\uff1a\u53ef\u6267\u884c\u6587\u4ef6\u901a\u5e38\u66f4\u5bb9\u6613\u4f7f\u7528\uff0c\u7528\u6237\u4e0d\u9700\u8981\u4e86\u89e3\u548c\u5b89\u88c5Python\u73af\u5883\uff0c\u53ea\u9700\u8981\u53cc\u51fb\u8fd0\u884c\u5373\u53ef\u3002<\/li>\n<\/ul>\n<p>\u8981\u5c06Python 3.4\u5199\u597d\u7684.py\u6587\u4ef6\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528PyInstaller\u3001py2exe\u6216cx_Freeze\u7b49\u7b2c\u4e09\u65b9\u5de5\u5177\u3002\u5177\u4f53\u6b65\u9aa4\u53c2\u89c1\u524d\u9762\u7684\u56de\u7b54\u3002\u8bb0\u4f4f\uff0c\u4e0d\u540c\u7684\u5de5\u5177\u53ef\u80fd\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u60c5\u51b5\u548c\u9700\u6c42\uff0c\u8bf7\u6839\u636e\u81ea\u5df1\u7684\u9700\u8981\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u8fdb\u884c\u8f6c\u6362\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python3.4\u7f16\u5199\u7684.py\u6587\u4ef6\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u5de5\u5177\u6253\u5305\u6210exe\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u4f8b\u5982PyInstaller\u3001cx_F [&hellip;]","protected":false},"author":3,"featured_media":301794,"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\/301785"}],"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=301785"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/301785\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/301794"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=301785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=301785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=301785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}