{"id":425,"date":"2008-08-23T11:02:53","date_gmt":"2008-08-23T03:02:53","guid":{"rendered":"http:\/\/www.liangliang.org.cn\/blog\/?p=425"},"modified":"2008-08-23T11:02:53","modified_gmt":"2008-08-23T03:02:53","slug":"%e5%a6%82%e4%bd%95%e7%bc%96%e8%af%91python%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/www.liangliang.org.cn\/?p=425","title":{"rendered":"\u5982\u4f55\u201c\u7f16\u8bd1\u201dPython\u7a0b\u5e8f"},"content":{"rendered":"<p>\u25cf\u5982\u4f55\u201c\u7f16\u8bd1\u201dPython\u7a0b\u5e8f <\/p>\n<p>\u4e3b\u8981\u66f4\u65b0\u8bb0\u5f55\uff1a<br \/>2005\u5e746\u67084\u65e5\u66f4\u65b0\uff0c\u6dfb\u52a0movpy\u6761\u76ee\u3002\u540c\u65f6\u9488\u5bf9http:\/\/blender.blogchina.com\/1776425.html\uff0c\u505a\u5982\u4e0b\u7533\u660e\uff1a  <\/p>\n<p>\u51e1\u6b32\u8f6c\u8f7d\u3001\u90e8\u5206\u8f6c\u8f7d\u3001\u5f15\u7528\u6211\u539f\u521b\u7684\u6587\u7ae0\uff0c\u8bf7\u6807\u660e\u4f5c\u8005\u662f\u7261\u86ce\uff0c\u540c\u65f6\u8bf7\u7ed9\u51fa\u539f\u59cb\u8fde\u63a5\uff1b\u4f60\u53ef\u4ee5\u90e8\u5206\u8f6c\u8f7d\u3001\u5f15\u7528\u6211\u7684\u6587\u7ae0\uff0c\u524d\u63d0\u662f\u8fd9\u4e0d\u4f1a\u5f15\u8d77\u4ed6\u4eba\u8bef\u89e3\u6211\u7684\u539f\u610f\u3002\u672a\u7ecf\u4e66\u9762\u5141\u8bb8\uff0c\u6211\u7684\u6587\u7ae0\u3001\u6587\u7ae0\u90e8\u5206\u4e0d\u53ef\u4ee5\u7528\u4e8e\u5546\u4e1a\u7528\u9014\uff08\u542b\u4f20\u7edf\u51fa\u7248\u7269\u3001\u9700\u8981\u79ef\u5206\u6216\u8005\u865a\u62df\u8d27\u5e01\u624d\u53ef\u4ee5\u6d4f\u89c8\u7684\u7f51\u4e0a\u5185\u5bb9\uff09\u3002\u5982\u679c\u4f60\u4e0d\u540c\u610f\uff0c\u8bf7\u52ff\u8f6c\u8f7d\u3001\u90e8\u5206\u8f6c\u8f7d\u3001\u5f15\u7528\u3002\u8c22\u8c22\u5408\u4f5c\u3002<br \/>2005\u5e7411\u6708\u66f4\u65b0\uff0c\u6dfb\u52a0Shed Skin - A Python-to-C++ Compiler\u3001Psyco\u3001PyPy\u3001pyc\u3002\u4eca\u5929\u7684\u66f4\u65b0\u5c31\u50cf\u5728\u8bf4\u7ed5\u53e3\u4ee4\u3002 <br \/>2006\u5e7401\u670824\u65e5\uff0cmovpy\u53d8\u6210\u5546\u4e1a\u8f6f\u4ef6\u4e86 \ud83d\ude41 <br \/>2006\u5e7411\u670826\u65e5\uff0c\u6dfb\u52a0\u4e86\u5bf9\u201c\u53cd\u7f16\u8bd1\u201d\u201c\u7f16\u8bd1\u201d\u4e4b\u540e\u7684\u6587\u4ef6\u7684\u770b\u6cd5 <br \/>2006\u5e7412\u670806\u65e5\uff0c\u6dfb\u52a0Jungle  <\/p>\n<p>\u5982\u4f55\u7f16\u8bd1Python\u7a0b\u5e8f\uff08\u6216\u8005\u5982\u4f55\u7531Python\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff09\u662f\u4e00\u4e2a\u975e\u5e38\u5e38\u89c1\u7684\u95ee\u9898\uff0c\u603b\u662f\u6709\u4eba\u95ee\uff0c\u5217\u51fa\u6765\uff0cgoogle\u641c\u7d22\u7684\u65f6\u5019\u5c31\u53ef\u4ee5\u770b\u5230\u4e86\u3002\u5982\u679c\u8fd8\u6709\u4eba\u8bf4\"\u627e\u4e0d\u5230\u76f8\u5173\u8d44\u6599\"\uff0c\u552f\u4e00\u7684\u89e3\u91ca\u5c31\u662f\u8fd9\u4e2a\u4eba\u592a\u61d2\u4e86\uff0c\u6839\u672c\u6ca1\u6709\u53bb\u627e\u3002  <\/p>\n<p>\u5982\u679c\u8f6c\u8f7d\uff0c\u8bf7\u6ce8\u660e\u4f5c\u8005\u662f\u7261\u86ce\uff0c\u51fa\u81eahttp:\/\/blender.blogchina.com\/523381.html\u3002  <\/p>\n<p>&nbsp;&nbsp; 0. Python\uff08\u53ca\u5176\u5b83\u9ad8\u7ea7\u7684\u811a\u672c\u8bed\u8a00\uff09\u4e0d\u5b58\u5728\u628a\u6307\u4ee4\u7f16\u8bd1\u5230\u672c\u5730\u4ee3\u7801\u7684\u5de5\u5177\uff0c\u4f46\u662f\u603b\u662f\u53ef\u4ee5\u53d1\u5e03\u53ef\u6267\u884c\u6587\u4ef6\u3002  <\/p>\n<p>py2exe&nbsp;&nbsp;&nbsp;&nbsp; <a href=\"http:\/\/py2exe.sf.net\">http:\/\/py2exe.sf.net<\/a><br \/>\u53ea\u652f\u6301windows\u5e73\u53f0\uff0c\u5e94\u8be5\u662f\u5927\u5bb6\u542c\u5230\u6700\u591a\u7684\u4e00\u4e2a\u540d\u5b57\u4e86\uff0c\u7528\u6237\u4e0d\u5c11\uff0c\u6240\u4ee5\u6709\u95ee\u9898\u7684\u8bdd\u5728\u5b83\u7684mail list\u91cc\u9762\u5f88\u5bb9\u6613\u627e\u5230\u7b54\u6848\u3002\u6587\u6863\u4e2d\u63d0\u5230\u4e86\"\u65e0\u6cd5\u627e\u5230\u67d0\u67d0code\"\u3001\u4f7f\u7528opengl\u7b49\u6a21\u5757\u7684\u95ee\u9898  <\/p>\n<p>PyPackage&nbsp;&nbsp;&nbsp; <a href=\"http:\/\/codereactor.net\/projects\/pypack\/index.html\">http:\/\/codereactor.net\/projects\/pypack\/index.html<\/a><br \/>\u6211\u89c9\u5f97py2exe\u7b49\u7b49\u5de5\u5177\u8fd8\u662f\u7f57\u55e6\u5f97\u50cf\u5510\u50e7\uff0c\u9700\u8981\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u5199\u4e0a\u9700\u8981\u7684\u6570\u636e\u6587\u4ef6\u3002\u4f5c\u8005\u5b8c\u5168\u65e0\u89c6\u8fd9\u6837\u4e00\u4e2a\u4e8b\u5b9e\uff1a\u6211\u9700\u8981\u53d1\u5e03\u53ef\u6267\u884c\u6587\u4ef6\u7684\u65f6\u5019\uff0c\u7a0b\u5e8f\u5df2\u7ecf\u5b8c\u5de5\u4e86\uff0c\u6240\u6709\u7684\u6570\u636e\u6587\u4ef6\u5c31\u5728\u4e3b\u7a0b\u5e8f\u6240\u5728\u76ee\u5f55\u4e0b\uff0c\u6240\u4ee5\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u6839\u672c\u4e0d\u7528\u5230\u522b\u7684\u5730\u65b9\u641c\u7d22\u3002\u73b0\u5728\u7ec8\u4e8e\u6709\u4eba\u7ad9\u4e86\u51fa\u6765\uff0cPyPackage\u5b9e\u9645\u4e0a\u5e76\u4e0d\u662f\u4e00\u4e2a\u7a0b\u5e8f\u6253\u5305\u7684\u5de5\u5177\uff0c\u800c\u53ea\u662f\u7b80\u5316py2exe\u7684\u64cd\u4f5c\uff0c\u751a\u81f3\u53ef\u4ee5\u81ea\u52a8\u8c03\u7528InnoSetup 5\u5236\u4f5c\u5b89\u88c5\u6587\u4ef6\u2014\u2014\u4e0d\u8fc7\u8fd9\u4e2a\u8f6f\u4ef6\u5e76\u4e0d\u667a\u80fd\uff0c\u4f1a\u6253\u5305\u5f88\u591a\u4e0d\u9700\u8981\u7684\u6587\u4ef6  <\/p>\n<p>Installer&nbsp;&nbsp;&nbsp;&nbsp; <a href=\"http:\/\/www.mcmillan-inc.com\/installer_dnld.html\">http:\/\/www.mcmillan-inc.com\/installer_dnld.html<\/a><br \/>\u53ef\u4ee5\u4ea7\u751fwindows\u3001linux\u5e73\u53f0\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u73b0\u5728\u4f5c\u8005\u4e3b\u9875\u8fde\u4e0d\u4e0a\u53bb\u4e86\uff0c\u4f46\u662f\u641c\u7d22\u4e00\u4e0b\u53ef\u4ee5\u5728\u5176\u5b83\u5730\u65b9\u4e0b\u8f7d<br \/>\u81ea\u5e26\u4e00\u4e2a\u5c0f\u7a0b\u5e8f\u5199\u914d\u7f6e\u6587\u4ef6\uff0c\u5982\u679c\u7a0b\u5e8f\u8f83\u590d\u6742\uff0c\u8fd8\u662f\u9700\u8981\u624b\u5de5\u4fee\u6539\u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6\u3002\u652f\u6301\u4ecepy15\u4ee5\u6765\u7684\u6240\u6709Python\u7248\u672c<br \/>2005\u5e749\u6708\uff0c\u51b0\u51bb\u7261\u86ce\u66f4\u65b0\uff1aGiovanni Bajo\u83b7\u5f97Gordon McMillan's Installer\u7684\u6388\u6743\u3001\u7248\u6743\u6539\u53d8\u4e3aGPL\uff0c\u5e76\u5728http:\/\/pyinstaller.hpcf.upr.edu\/\u7ee7\u7eed\u5f00\u53d1PYinstaller\u30022006\u5e749\u6708\u66f4\u65b0\uff1a\u8fd9\u91cc\u53ef\u4ee5\u770b\u5230Gordon McMillan's\u7684\u539f\u59cb\u7f51\u7ad9\u7684\u955c\u50cf  <\/p>\n<p>Python\u81ea\u5e26\u7684freeze.py\uff08\u4e0d\u8fc7windows\u7248\u672c\u4e0d\u5e26\u8fd9\u4e2a\uff0c\u4f60\u53ef\u4ee5\u81ea\u5df1\u4e0b\u8f7dPython\u7684\u6e90\u7a0b\u5e8f\u518d\u627e\uff09\u3002\u8fd9\u4e2a\u662f\u6211\u6700\u4e0d\u63a8\u8350\u7684\u4e00\u79cd\u65b9\u6cd5\uff08\u4e3a\u4ec0\u4e48\uff1f\u81ea\u5df1\u770b\uff09\uff0c\u4e0d\u8fc7\u5982\u679c\u4f60\u7684Python\u7a0b\u5e8f\u8981\u53d1\u5e03\u5230\u5176\u5b83\u5de5\u5177\u4e0d\u652f\u6301\u7684\u5e73\u53f0\u4e0a\uff0c\u53ef\u4ee5\u8003\u8651\u8fd9\u4e2a\u65b9\u6cd5  <\/p>\n<p>\u65b0\u51fa\u6765\u7684Pyco&nbsp;&nbsp;&nbsp; <a href=\"http:\/\/www.pythonapocrypha.com\/projects\/pyco\/\">http:\/\/www.pythonapocrypha.com\/projects\/pyco\/<\/a><br \/>\u8fd8\u6ca1\u7528\u8fc7  <\/p>\n<p>Squeeze&nbsp;&nbsp;&nbsp; <a href=\"http:\/\/starship.python.net\/crew\/fredrik\/ipa\/squeeze.htm\">http:\/\/starship.python.net\/crew\/fredrik\/ipa\/squeeze.htm<\/a><br \/>\u8fd8\u6ca1\u7528\u8fc7\uff0c\u53ea\u652f\u6301Python 1.4  <\/p>\n<p>cx_Freeze&nbsp; <a href=\"http:\/\/starship.python.net\/crew\/atuining\/cx_Freeze\/\">http:\/\/starship.python.net\/crew\/atuining\/cx_Freeze\/<\/a><br \/>winodws\u3001linux\u5e73\u53f0\u3002\u7b80\u5355\u7684\u7a0b\u5e8f\u751a\u81f3\u90fd\u4e0d\u9700\u8981\u5199\u914d\u7f6e\u6587\u4ef6  <\/p>\n<p>Stand alone Python for Windows <a href=\"http:\/\/arctrix.com\/nas\/python\/standalone.html\">http:\/\/arctrix.com\/nas\/python\/standalone.html<\/a><br \/>\u5982\u679c\u4f60\u4e0d\u4ecb\u610f\u6e90\u7a0b\u5e8f\u592a\u8fc7\"\u66b4\u9732\"\u7684\u8bdd\uff0c\u7528\u8fd9\u4e2a\u5427<br \/>\u4f1a\u4e0d\u4f1a\u89c9\u5f97Updated: Sun, 09 Apr 2000 18:39:54 -0600 \u624e\u773c\uff1f\u5982\u679c\u4f60\u770b\u4e00\u770b\u5b83\u7684VC\u6e90\u4ee3\u7801\uff0c\u5c31\u4e0d\u4f1a\u8fd9\u4e48\u60f3\u4e86\u2014\u2014\u5176\u5b9e\u8fd9\u662f\u666e\u904d\u9002\u7528\u4e8e\uff57\uff49\uff4e\u7cfb\u7edf\u7684\u65b9\u6cd5\uff0c\u65e0\u8bba\u662f\uff19\uff18\u3001\uff12\uff10\uff10\uff10\u6216\u8005\uff58\uff50\u3002\u4e5f\u8bb8\u4e5f\u53ef\u4ee5\u7528\u5230\uff4c\uff49\uff4e\uff55\uff58\u4e0a\u2014\u2014\u6211\u4e0d\u61c2\uff4c\uff49\uff4e\uff55\uff58\uff0c\u5982\u679c\u771f\u7684\u53ef\u4ee5\u8fd9\u4e48\u505a\uff0c\u8fd8\u8bf7\u544a\u8bc9\u6211\u3002  <\/p>\n<p>py2app&nbsp;&nbsp;&nbsp; <a href=\"http:\/\/undefined.org\/python\/\">http:\/\/undefined.org\/python\/<\/a><br \/>\u652f\u6301linux\u5e73\u53f0\u7684\u5de5\u5177\u53ef\u80fd\u4e5f\u652f\u6301mac os\uff0c\u6216\u8005\u76f4\u63a5\u4f7f\u7528\u8fd9\u4e2apy2app\u3002\u5177\u4f53\u5c31\u4e0d\u77e5\u9053\u4e86\uff0c\u53ea\u5403\u8fc7\u82f9\u679c\uff0c\u8fd8\u6ca1\u73a9\u8fc7\u82f9\u679c\u5462  <\/p>\n<p>Movable Python&nbsp; <a href=\"http:\/\/www.voidspace.org.uk\/python\/movpy\/\">http:\/\/www.voidspace.org.uk\/python\/movpy\/<\/a><br \/>\u8fd9\u4e2a\u5176\u5b9e\u662f\u4f7f\u7528py2exe\u5236\u4f5c\u7684\u3001\u53ef\u4ee5\u653e\u5728U\u76d8\u4e0a\u7684\u7eff\u8272Python\u3002\u6709\u4f7f\u7528py2app\u5236\u4f5c\u82f9\u679c\u7248movpy\u548c\u7528cx_Freeze\u5236\u4f5cLinux\u7248movpy\u7684\u8ba1\u5212\u3002\u61d2\u5230\u90fd\u4e0d\u613f\u610f\u5b66\u4e60py2exe\u3001py2app\u6216\u8005cx_Freeze\u7684\u4eba\u53ef\u4ee5\u770b\u770b\u3002  <\/p>\n<p>Shed Skin - A Python-to-C++ Compiler\uff1a \u8bd5\u9a8c\u9879\u76ee\uff0cwindows\u4e0a\uff0c\u8fde\u4ed6\u7684\u4f8b\u5b50\u6211\u90fd\u6ca1\u6709\u7f16\u8bd1\u6210\u529f :(\u3002  <\/p>\n<p>Psyco\uff1a \u7ed9Python\u7a0b\u5e8f\u52a0\u901f\u7684\u4e1c\u897f\uff0c\u770b\u4e0d\u51fa\u5bf9\u53d1\u5e03Python\u7a0b\u5e8f\u7684\u76f4\u63a5\u597d\u5904\uff0c\u5e76\u4e14\u4f5c\u8005\u4ee5\u540e\u5c06\u81f4\u529b\u4e8ePyPy\u3002  <\/p>\n<p>PyPy\uff1a \u9879\u76ee\u76ee\u6807\u662f\u7eafPython\u5b9e\u73b0\u7684Python\u3001\u901f\u5ea6\u6bd4CPython\u5feb\uff0c\u5c06\u6765\u53ef\u4ee5\u5e2e\u52a9\u5b9e\u73b0\u7f16\u8bd1Python\u3002  <\/p>\n<p>pyc\uff1a Python compiler in Python\uff0c\u4e00\u4e2a\u7528\u7eafPython\u5199\u7684Python\u7684bytecode\u7f16\u8bd1\u5668\uff0c\u53ef\u4ee5\u4f18\u5316\u8f93\u51fa\u7684pyc\u6587\u4ef6\u3002\u548cPyPy\u4e00\u6837\uff0c\u73b0\u5728\u8fd8\u770b\u4e0d\u51fa\u5bf9\u53d1\u5e03Python\u7a0b\u5e8f\u7684\u76f4\u63a5\u597d\u5904\u3002\u53ea\u6709py24\u7684bytecode\u3002pyc\u662fpyvm\u8fd9\u4e2a\u65b0\u7684python\u865a\u62df\u673a\u7684\u4e00\u90e8\u5206\u3002  <\/p>\n<p>Jungle\uff1a \u4f7f\u7528GNU\u5de5\u5177\uff08as\u3001ld\u548cwinres\uff09\u628aPython\u7a0b\u5e8f\u7f16\u8bd1\u5230windows\u7684exe\u53ef\u6267\u884c\u6587\u4ef6\u3002\u8be5\u53ef\u6267\u884c\u6587\u4ef6\u53ea\u4f7f\u7528\u57fa\u4e8epython24\u7684\u7684pythonic.dll\u3002\u731c\u6d4b\u5b83\u652f\u6301\u7684\u6a21\u5757\u4ec5\u9650\u4e8e\u5185\u90e8\u6a21\u5757\u4ee5\u53cajungle.jgl\u5217\u51fa\u7684\u6a21\u5757\u3002\u53ea\u6709\u53ef\u6267\u884c\u6587\u4ef6\u4e0b\u8f7d\uff0c\u800c\u8fd9\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\u4e5f\u662f\u7528Jungle\u81ea\u5df1\u7f16\u8bd1\u7684\u3002\u76ee\u524d\u7248\u672c\u53f7\u90fd\u52301.10\u4e86\uff0c\u7ecf\u5e38\u770b0.xx\u7684\u7248\u672c\u53f7\uff0c\u8fd9\u4e2a\u6570\u5b57\u597d\u5927\u554a\uff0c\u5a03\u54c8\u54c8\u3002  <\/p>\n<p>\u53e6\u7c7b\u7684\u65b9\u6cd5\uff0c\u5bf9Python\u8bed\u8a00\u7279\u6027\u90fd\u8fd8\u4e0d\u662f100\uff05\u652f\u6301\uff0c\u4f17\u591a\u7684CPython\u6a21\u5757\u4e5f\u4e0d\u53ef\u4ee5\u4f7f\u7528\uff0c\u8fd8\u6709\uff0c\u6211\u4e5f\u6ca1\u6709\u8bd5\u8fc7\uff1a<br \/>for .NET\u7684Python\u7f16\u8bd1\u5668\uff08\u5982Visual Python\u3001IronPython\uff09\uff0c\u4e0d\u8fc7\u6211\u53ef\u4e0d\u559c\u6b22\u4e3a\u4e86\u4e00\u4e2a\u829d\u9ebb\u5927\u7684\u8f6f\u4ef6\u5b89\u88c5.NET framework<br \/>\u7528jython\uff0c\u7136\u540e\u7528jbuilder\u3001jsmooth\u3001NativeJ\u4e4b\u7c7b\u7684\u5305\u88f9\u4e00\u4e0b\uff0c\u6216\u8005\u7528gcj\u7f16\u8bd1\u6210\u672c\u5730\u4ee3\u7801  <\/p>\n<p>2006\u5e7411\u670826\u65e5\uff0c\u8fd1\u6765\u6709\u4e9b\u4eba\u95ee\uff0c\u5982\u4f55\u4fdd\u62a4python\u5f00\u53d1\u7684\u5546\u4e1a\u8f6f\u4ef6\/\u95ed\u6e90\u8f6f\u4ef6\u3002  <\/p>\n<p>\u6211\u7684\u89c2\u70b9\u662f\uff0c\u7eafPython\u7a0b\u5e8f\uff0c\u53c8\u4e0d\u60f3\u7528C\u8bed\u8a00\uff08\u5176\u5b9eC\u8bed\u8a00\u7a0b\u5e8f\u4e5f\u53ef\u4ee5\u7834\u89e3\uff0c\u6240\u4ee5\u6700\u597d\u7684\u65b9\u6cd5\u5c31\u662f\u4e0d\u53d1\u5e03\u4efb\u4f55\u7a0b\u5e8f\uff0c\u563f\u563f\uff09\uff0c\u53ef\u4ee5\u8bd5\u8bd5pyobfuscate\u6df7\u6dc6\u6e90\u4ee3\u7801\uff0c\u589e\u52a0\u53ef\u80fd\u88ab\u53cd\u7f16\u8bd1\u83b7\u5f97\u7684\u6e90\u4ee3\u7801\u7684\u9605\u8bfb\u96be\u5ea6\u3002\u4e0d\u8fc7pyobfuscate\u4e5f\u597d\u4e45\u6ca1\u6709\u66f4\u65b0\u4e86\uff0c\u5a03\u54c8\u54c8\u3002\u800c\u5b9e\u9645\u4e0a\uff0c\u6ca1\u5fc5\u8981\u8003\u8651\u522b\u4eba\u4f1a\u83b7\u5f97\u6e90\u4ee3\u7801\u7684\u95ee\u9898\u3002 \u8003\u8651\uff08\u5c24\u5176\u662f\u5728\u81ea\u5df1\u7684\u7a0b\u5e8f\u8fd8\u6ca1\u6709\u5199\u51fa\u6765\u7684\u65f6\u5019\uff09\u522b\u4eba\u4f1a\u53cd\u7f16\u8bd1\u81ea\u5df1\u7684Python\u7a0b\u5e8f\uff0c\u6709\u70b9\u675e\u4eba\u5fe7\u5929\u3002  <\/p>\n<p>\u5728*nix\u4e0b\u7684\u8bdd\uff0c\u4f3c\u4e4e\u53ef\u4ee5\uff08\u6211\u4e0d\u7528*nix\uff0c\u5e76\u4e0d\u786e\u5b9a\uff09\u4f7f\u7528Python\u81ea\u5e26\u7684freeze.py\uff0c\u628a\u6e90\u7a0b\u5e8f\u7684\u5b57\u8282\u7801\u8f6c\u6362\u6210C\u7a0b\u5e8f\uff0c\u7136\u540e\u4f7f\u7528GCC\u7f16\u8bd1\uff0c\u8fd9\u6837\u5e94\u8be5\u770b\u4e0d\u5230\u5b57\u8282\u7801\u4e86\u3002\u5728windows\u4e0b\uff0c\u4e0d\u77e5\u9053\u600e\u4e48\u4f7f\u7528freeze.py\uff0c\u603b\u62a5\u9519\u2014\u2014\u8c01\u77e5\u9053\u7684\u8bdd\u544a\u8bc9\u6211\u5427\u3002\u4f46\u662f\u5982\u679c\u60f3\u5b9e\u73b0\u8de8\u5e73\u53f0\uff0c\u4f7f\u7528freeze.py\u7684\u65b9\u6cd5\u4f3c\u4e4e\u4e0d\u53ef\u53d6\u3002  <\/p>\n<p>\u9996\u5148\u6211\u76f8\u4fe1\uff0c\u76ee\u524d\u6ca1\u6709\u8f6f\u4ef6\u53ef\u4ee5\u5f88\u597d\u53cd\u7f16\u8bd1Python 2.4\u53ca\u4e4b\u540e\u7684\u7248\u672c\u751f\u6210\u7684\u5b57\u8282\u7801\uff0c\u6240\u4ee5\u91c7\u7528\u65b0\u7248\u672cPython\u201c\u7f16\u8bd1\u201d\u5230\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u662f\u5b89\u5168\u7684\u3002  <\/p>\n<p>\u5176\u6b21\uff0c\u636e\u6211\u6240\u77e5\uff0c\u76ee\u524d\u6700\u6210\u719f\u7684\u53cd\u7f16\u8bd1\u8f6f\u4ef6\u53ea\u6709decompyle\u3002\u800c\u4e0d\u662f\u8c61\u67d0\u4e9b\u4eba\u4e3a\u4e86\u5938\u5927\u95ee\u9898\u7684\u91cd\u8981\u6027\uff0c\u800c\u53e3\u5410\u83b2\u82b1\u6240\u8bf4\u7684\u201c\u73b0\u5728\u6709\u5f88\u591aPython\u7684\u53cd\u7f16\u8bd1\u8f6f\u4ef6\u201d\u3002\u800c\u6211\u4e0d\u76f8\u4fe1\u6709\u4eba\u613f\u610f\u82b1\u94b1\u4e70\u8fd9\u4e2a\u201c\u552f\u4e00\u7684\u4e14\u5f88\u591a\u7684\u201d\u53cd\u7f16\u8bd1\u8f6f\u4ef6\uff0c\u7406\u7531\u6709\u4e8c<br \/>\u770b\u770bdecompyle\u9875\u9762\u66f4\u65b0\u65e5\u671f\uff0c\u662f2004\u5e74\u3002\u6211\u731c\u6d4b\u4f5c\u8005\u628a\u8fd9\u4e2a\u8f6f\u4ef6\u5546\u4e1a\u5316\u4e4b\u540e\u5e76\u4e0d\u6210\u529f\uff0c\u5e76\u6ca1\u6709\u592a\u591a\u4eba\u9700\u8981\u53cd\u7f16\u8bd1\u81ea\u5df1\u6216\u8005\u4ed6\u4eba\u7684Python\u7a0b\u5e8f\u3002\u5bfc\u81f4\u4f5c\u8005\u6ca1\u6709\u8db3\u591f\u7684\u6536\u5165\u6216\u8005\u5174\u8da3\u7ee7\u7eed\u5b8c\u5584\u4e86<br \/>\u6709\u4eba\u613f\u610f\u82b1\u94b1\u53bb\u53cd\u7f16\u8bd1\u4e00\u4e2a\u8fd8\u4e0d\u5b58\u5728\u5730\u8f6f\u4ef6\uff0c\u6216\u8005\u4e00\u4e2a\u4e0d\u51fa\u540d\u7684\u7a0b\u5e8f\uff1f  <\/p>\n<p>\u6b21\u6210\u719f\u7684\u53cd\u7f16\u8bd1\u8f6f\u4ef6\u662fdecompiler.py\u3002\u4f46\u662f\u5b83\u6bd4\u5546\u4e1a\u8f6f\u4ef6decompyle\u5dee\u8fdc\u4e86\u3002\u6211\u6ca1\u6709\u53bb\u505a\u8bd5\u9a8c\uff0c\u662f\u4ed6\u81ea\u5df1\u7684\u4e3b\u9875\u627f\u8ba4\u8bf4\u6709\u5f88\u591a\u5c40\u9650\u7684\u3002  <\/p>\n<p>\u6700\u540e\uff0c\u771f\u8bda\u8bf7\u6559\u90a3\u4e9b\u6709\u201c\u5f88\u591a\u201dPython\u53cd\u7f16\u8bd1\u7a0b\u5e8f\u7684\u9ad8\u624b\uff0c\u4e24\u4e2a\u95ee\u9898\uff1a<br \/>subsystem.htm<br \/>\u8fd9\u662f\u5c06\u6570\u72ec\u6e38\u620f\u548c\u6d88\u9664\u6e38\u620f\u7ed3\u5408\u8d77\u6765\u7684\u76ca\u667a\u6e38\u620f\uff0c\u672a\u6ce8\u518c\u7684\u8bdd\uff0c\u53ea\u80fd\u7d2f\u79ef\u73a960\u5206\u949f\u3002\u8fd9\u662fPython+pygame\u5236\u4f5c\u7684\u8f6f\u4ef6\uff0c\u4f7f\u7528py2exe\u53d1\u5e03\uff0c\u53ef\u5426\u9ebb\u70e6\u9ad8\u624b\u2014\u2014\u522b\u6015\uff0c\u6211\u4e0d\u8981\u5b83\u7684\u6e90\u7a0b\u5e8f\u2014\u2014\u770b\u770b\u5b83\u7684\u6ce8\u518c\u90e8\u5206\uff0c\u6574\u4e2a\u6ce8\u518c\u673a\/\u6ce8\u518c\u7801\u51fa\u6765\uff1f<br \/>wingide<br \/>\u8fd9\u4e2a\u6709\u540d\u7684Python\u5546\u4e1aide\uff0c\u6211\u4e0d\u786e\u5b9a\u5b83\u662f\u4e0d\u662f\u4f7f\u7528py2exe\u5236\u4f5c\u7684\uff0c\u800c\u4e14\u5b83\u7684\u89c4\u6a21\u6bd4\u8f83\u5927\u3002\u6211\u5bf9\u5b83\u7684\u6e90\u4ee3\u7801\u6709\u70b9\u5174\u8da3\uff0c\u6709\u4eba\u8bf4\u770b\u4e0d\u5230\u5b83\u7684\u6e90\u4ee3\u7801\uff0c\u4f46\u662f\u6211\u89c9\u5f97\\bin\\2.4\\src.zip\u91cc\u9762\u7684\u4e00\u5806pyo\uff0c\u662f\u5982\u5047\u5305\u6362\u7684\u6e90\u4ee3\u7801\u7684\u5b57\u8282\u7801\uff0c\u5982\u679c\u771f\u662f\u5982\u6b64\uff0c\u9ebb\u70e6\u9ad8\u624b\u5728\u7a7a\u4f59\u65f6\u95f4\uff0c\u53cd\u7f16\u8bd1\u4e00\u4efd\u55bd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25cf\u5982\u4f55\u201c\u7f16\u8bd1\u201dPython\u7a0b\u5e8f \u4e3b\u8981\u66f4\u65b0\u8bb0\u5f55\uff1a2005\u5e746\u67084\u65e5\u66f4\u65b0\uff0c\u6dfb\u52a0movpy\u6761\u76ee\u3002\u540c\u65f6\u9488\u5bf9http:\/\/blender.blogchina.com\/1776425.html\uff0c\u505a\u5982\u4e0b\u7533\u660e\uff1a \u51e1\u6b32&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-425","post","type-post","status-publish","format-standard","hentry","category-hacker"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=425"}],"version-history":[{"count":0,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/425\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}