python \u6253\u5305\u751f\u6210exe<\/a>\u5728\u8be5\u76ee\u5f55\u4e0b\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff1a<\/p>\n“`<\/p>\n
ipy pyc.py \/main:hello.py \/target:exe<\/p>\n
“`<\/p>\n
\u6ce8\u610f\uff1a\u5982\u679c\u6ca1\u6709 pyc.py\uff0c\u53ef\u4ee5\u5728 IronPython \u5b98\u65b9 GitHub \u4ed3\u5e93\u627e\u5230\uff1a https:\/\/github.com\/IronLanguages\/ironpython2\/blob\/master\/Src\/Tools\/Scripts\/pyc.py<\/p>\n
\u8fd9\u4e2a\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u5c06 hello.py \u6253\u5305\u6210\u540d\u4e3a hello.exe \u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002\/main \u53c2\u6570\u6307\u5b9a\u4e3b\u7a0b\u5e8f\u6587\u4ef6\uff0c\/target \u53c2\u6570\u6307\u5b9a\u8f93\u51fa\u7684\u76ee\u6807\u7c7b\u578b\u3002\u786e\u4fdd\u5728\u751f\u6210\u7684 exe \u6587\u4ef6\u4e2d\u5305\u542b\u6240\u9700\u7684 IronPython.dll \u548c Microsoft.scripting.dll\u3002\u8fd9\u6837\u4f60\u5c31\u53ef\u4ee5\u5728\u4e0d\u5b89\u88c5 IronPython \u7684\u73af\u5883\u4e0b\u8fd0\u884c\u6b64\u53ef\u6267\u884c\u6587\u4ef6\u4e86\u3002<\/p>\n
\u73b0\u5728\uff0c\u4f60\u5c31\u53ef\u4ee5\u5c06\u751f\u6210\u7684 hello.exe \u6587\u4ef6\u53d1\u9001\u7ed9\u5176\u4ed6\u4eba\uff0c\u8ba9\u4ed6\u4eec\u5728\u4e0d\u5b89\u88c5 IronPython \u7684\u8ba1\u7b97\u673a\u4e0a\u8fd0\u884c\u6b64\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
IronPython \u662f\u4e00\u4e2a\u5f00\u6e90\u5b9e\u73b0\u7684 Python \u7f16\u7a0b\u8bed\u8a00\uff0c\u5b83\u662f\u57fa\u4e8e .NET Framework\uff08\u73b0\u5df2\u517c\u5bb9 .NET Core\uff09\u5f00\u53d1\u7684\uff0c\u8fd9\u4f7f\u5f97\u5b83\u5728 Windows \u5e73\u53f0\u4e0b\u8fd0\u884c\u5f97\u975e\u5e38\u987a\u7545\uff0c\u800c\u4e14\u8fd8<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[11598,11597,24,12,34],"topic":[],"class_list":["post-6425","post","type-post","status-publish","format-standard","hentry","category-zhuomianruanjian","tag-vs2015exe","tag-windowsiso","tag-24","tag-12","tag-34"],"_links":{"self":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/6425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/comments?post=6425"}],"version-history":[{"count":0,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/6425\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/media?parent=6425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/categories?post=6425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/tags?post=6425"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/topic?post=6425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}