{"id":34540,"date":"2024-07-25T15:40:22","date_gmt":"2024-07-25T07:40:22","guid":{"rendered":"https:\/\/h5app.yimenapp.cn\/h5app\/?p=34540"},"modified":"2024-07-25T15:40:22","modified_gmt":"2024-07-25T07:40:22","slug":"%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aa%e6%96%87%e4%bb%b6%e5%a4%b9exe%e5%ae%9e%e7%8e%b0%e6%96%b9%e6%b3%95%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/h5app.yimenapp.cn\/h5app\/2024\/ruanjiankf\/34540\/","title":{"rendered":"\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939exe\u5b9e\u73b0\u65b9\u6cd5\u4ecb\u7ecd"},"content":{"rendered":"<p>\u5728\u8ba1\u7b97\u673a\u4e2d\uff0c\u6587\u4ef6\u5939\u662f\u7528\u6765\u5b58\u50a8\u6587\u4ef6\u548c\u5176\u4ed6\u6587\u4ef6\u5939\u7684\u5bb9\u5668\u3002\u6587\u4ef6\u5939\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u7ec4\u7ec7\u6587\u4ef6\uff0c\u4f7f\u5176\u6613\u4e8e\u8bbf\u95ee\u548c\u7ba1\u7406\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201cexe\u201d\u7684\u6587\u4ef6\u5939\u3002<\/p>\n<p>\u9996\u5148\uff0c\u6253\u5f00\u4f60\u7684\u8ba1\u7b97\u673a\u6587\u4ef6\u6d4f\u89c8\u5668\u3002\u5728Windows\u4e2d\uff0c\u8fd9\u901a\u5e38\u662f\u201c\u8d44\u6e90\u7ba1\u7406\u5668\u201d\u3002\u5728Mac\u4e2d\uff0c\u8fd9\u901a\u5e38\u662f\u201cFinde<a href=\"https:\/\/exe.yimenapp.com\/tool-2132.html\">\u5c01\u88c5web\u6210exe<\/a>r\u201d\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u9009\u62e9\u4f60\u60f3\u8981\u521b\u5efa\u8be5\u6587\u4ef6\u5939\u7684\u4f4d\u7f6e\u3002\u8fd9\u53ef\u4ee5\u662f\u4f60\u7684\u684c\u9762\u3001\u6587\u6863\u6587\u4ef6\u5939\u3001\u4e0b\u8f7d\u6587\u4ef6\u5939\u6216\u4efb\u4f55\u5176\u4ed6\u4f60\u60f3\u8981\u7684\u4f4d\u7f6e\u3002<\/p>\n<p>\u5728\u4f60\u9009\u62e9\u7684\u4f4d\u7f6e\u4e0a\u5355\u51fb\u9f20\u6807\u53f3\u952e\u3002\u5728\u5f39\u51fa\u83dc\u5355\u4e2d\u9009\u62e9\u201c\u65b0<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.yimenyun.net\/2023-03\/20\/11\/25165309260.jpg\" \/><\/figure>\n<\/p>\n<p>\u5efa\u6587\u4ef6\u5939\u201d\u3002<\/p>\n<p>\u8f93\u5165\u201cexe\u201d\u4f5c\u4e3a\u6587\u4ef6\u5939\u7684\u540d\u79f0\u3002\u8bf7\u6ce8\u610f\uff0c\u6587\u4ef6\u5939\u540d\u79f0\u4e0d\u533a\u5206\u5927\u5c0f\u5199\u3002<\/p>\n<p>\u73b0\u5728\uff0c\u4f60\u5df2\u7ecf\u6210\u529f\u521b\u5efa\u4e86\u4e00\u4e2a\u540d\u4e3a\u201cexe\u201d\u7684\u6587\u4ef6\u5939\u3002\u4f60\u53ef\u4ee5\u5c06\u4efb<a href=\"https:\/\/exe.yimenapp.com\/tool-1492.html\">\u4e00\u952e\u751f\u6210pwa\u684c\u9762\u5e94\u7528<\/a>\u4f55\u6587\u4ef6\u6216\u5176\u4ed6\u6587\u4ef6\u5939\u62d6\u653e\u5230\u8be5\u6587\u4ef6\u5939\u4e2d\uff0c\u6216\u8005\u4f7f\u7528\u590d\u5236\u548c\u7c98\u8d34\u547d\u4ee4\u5c06\u5b83\u4eec\u79fb\u52a8\u5230\u8be5\u6587\u4ef6\u5939\u4e2d\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u5982\u679c\u4f60\u60f3\u8981\u521b\u5efa\u4e00\u4e2a\u201cexe\u201d\u6587\u4ef6\u5939\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u9700\u8981\u4f7f\u7528\u7f16\u7a0b\u8bed\u8a00\u6765\u5b9e\u73b0\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8bPython\u811a\u672c\uff0c\u5b83\u5c06\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201cexe\u201d\u7684\u6587\u4ef6\u5939\uff0c\u5e76\u5c06\u5176\u6253\u5305\u4e3a\u4e00\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<p>&#8220;`python<\/p>\n<p>import os<\/p>\n<p>def create_folder():<\/p>\n<p>    folder_name = &#8220;exe&#8221;<\/p>\n<p>    if not os.path.exists(folder_name):<\/p>\n<p>        os.makedirs(folder_name)<\/p>\n<p>if __name__ == &#8220;__main__&#8221;:<\/p>\n<p>    create_folder()<\/p>\n<p>&#8220;`<\/p>\n<p>\u8fd9\u4e2a\u7b80\u5355\u7684\u811a\u672c\u4f7f\u7528Python\u5185\u7f6e\u7684os\u6a21\u5757\u6765\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201cexe\u201d\u7684\u6587\u4ef6\u5939\u3002\u5982\u679c\u8be5\u6587\u4ef6\u5939\u4e0d\u5b58\u5728\uff0c\u5219\u521b\u5efa\u5b83\u3002\u6700\u540e\uff0c\u5c06\u8be5\u811a\u672c\u4fdd\u5b58\u4e3a\u4e00\u4e2a.py\u6587\u4ef6\uff0c\u5e76\u4f7f\u7528PyInstaller\u7b49\u5de5\u5177\u5c06\u5176\u6253\u5305\u4e3a\u4e00\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<p>\u603b\u4e4b\uff0c\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u51e0\u4e2a\u7b80\u5355\u7684\u6b65\u9aa4\u5373\u53ef\u5b8c\u6210\u3002\u65e0\u8bba\u662f\u5728Windows\u8fd8\u662fMac\u4e2d\uff0c\u90fd\u53ef\u4ee5\u4f7f\u7528\u76f8\u540c\u7684\u8fc7\u7a0b\u6765\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939\u3002\u5982\u679c\u4f60\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u53ef\u6267\u884c\u7684\u201cexe\u201d\u6587\u4ef6\u5939\uff0c\u4f60\u9700\u8981\u4f7f\u7528\u7f16\u7a0b\u8bed\u8a00\u6765\u5b9e\u73b0\u5b83\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u8ba1\u7b97\u673a\u4e2d\uff0c\u6587\u4ef6\u5939\u662f\u7528\u6765\u5b58\u50a8\u6587\u4ef6\u548c\u5176\u4ed6\u6587\u4ef6\u5939\u7684\u5bb9\u5668\u3002\u6587\u4ef6\u5939\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u7ec4\u7ec7\u6587\u4ef6\uff0c\u4f7f\u5176\u6613\u4e8e\u8bbf\u95ee\u548c\u7ba1\u7406\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201cexe\u201d\u7684\u6587\u4ef6\u5939\u3002\u9996\u5148\uff0c\u6253\u5f00\u4f60\u7684\u8ba1\u7b97\u673a\u6587\u4ef6\u6d4f\u89c8\u5668\u3002\u5728W<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[31230,784,4789,81,1689],"topic":[],"class_list":["post-34540","post","type-post","status-publish","format-standard","hentry","category-ruanjiankf","tag-linuxnoclassdeffounderror","tag-784","tag-4789","tag-81","tag-1689"],"_links":{"self":[{"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/posts\/34540","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/comments?post=34540"}],"version-history":[{"count":1,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/posts\/34540\/revisions"}],"predecessor-version":[{"id":34560,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/posts\/34540\/revisions\/34560"}],"wp:attachment":[{"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/media?parent=34540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/categories?post=34540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/tags?post=34540"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/h5app.yimenapp.cn\/h5app\/wp-json\/wp\/v2\/topic?post=34540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}