{"id":21461,"date":"2024-11-19T15:09:57","date_gmt":"2024-11-19T07:09:57","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21461\/"},"modified":"2024-11-19T15:09:57","modified_gmt":"2024-11-19T07:09:57","slug":"notepad%e6%80%8e%e4%b9%88%e8%bf%90%e8%a1%8cpython","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21461\/","title":{"rendered":"notepad+\u600e\u4e48\u8fd0\u884cpython"},"content":{"rendered":"<blockquote><p>\n  \u5728 notepad++ \u4e2d\u8fd0\u884c python \u4ee3\u7801\u9700\u8981\u5b89\u88c5 python \u53ef\u6267\u884c\u6587\u4ef6\u548c nppexec \u63d2\u4ef6\u3002\u5b89\u88c5 python \u5e76\u4e3a\u5176\u6dfb\u52a0 path \u540e\uff0c\u5728 nppexec \u63d2\u4ef6\u4e2d\u914d\u7f6e\u547d\u4ee4\u4e3a\u201cpython\u201d\u3001\u53c2\u6570\u4e3a\u201c{current_directory}{file_name}\u201d\uff0c\u5373\u53ef\u5728 notepad++ \u4e2d\u901a\u8fc7\u5feb\u6377\u952e\u201cf6\u201d\u8fd0\u884c python \u4ee3\u7801\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/29\/2024052914541688364.jpg\" class=\"aligncenter\" title=\"notepad+\u600e\u4e48\u8fd0\u884cpython\u63d2\u56fe\" alt=\"notepad+\u600e\u4e48\u8fd0\u884cpython\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5728 Notepad++ \u4e2d\u8fd0\u884c Python \u4ee3\u7801<\/strong><\/p>\n<p>\u8981\u4f7f\u7528 Notepad++ \u8fd0\u884c Python \u4ee3\u7801\uff0c\u9700\u8981\u5b89\u88c5 Python \u53ef\u6267\u884c\u6587\u4ef6\u548c Notepad++ \u63d2\u4ef6\u3002<\/p>\n<p><strong>\u5b89\u88c5 Python \u53ef\u6267\u884c\u6587\u4ef6<\/strong><\/p>\n<ul>\n<li>\u4e0b\u8f7d Python \u5b89\u88c5\u7a0b\u5e8f\uff08https:\/\/www..org\/downloads\/\uff09<\/li>\n<li>\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\u5e76\u9009\u62e9\u201c\u6dfb\u52a0 Python 3.x \u5230 PATH\u201d\u9009\u9879\u3002<\/li>\n<\/ul>\n<p><strong>\u5b89\u88c5 Notepad++ \u63d2\u4ef6<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>\u6253\u5f00 Notepad++<\/li>\n<li>\u70b9\u51fb\u201c\u63d2\u4ef6\u201d-&gt;\u201c\u63d2\u4ef6\u7ba1\u7406\u5668\u201d<\/li>\n<li>\u641c\u7d22\u201cNppExec\u201d\u5e76\u5b89\u88c5\u5b83<\/li>\n<\/ul>\n<p><strong>\u914d\u7f6e\u63d2\u4ef6<\/strong><\/p>\n<ul>\n<li>\u91cd\u65b0\u542f\u52a8 Notepad++<\/li>\n<li>\u70b9\u51fb\u201c\u63d2\u4ef6\u201d-&gt;\u201cNppExec\u201d-&gt;\u201c\u914d\u7f6e\u201d<\/li>\n<li>\u5728\u201c\u547d\u4ee4\u201d\u6846\u4e2d\u8f93\u5165\u201cpython\u201d<\/li>\n<li>\u5728\u201c\u53c2\u6570\u201d\u6846\u4e2d\u8f93\u5165\u201c{CURRENT_DIRECTORY}{FILE_NAME}\u201d<\/li>\n<li>\u70b9\u51fb\u201c\u786e\u5b9a\u201d<\/li>\n<\/ul>\n<p><strong>\u8fd0\u884c Python \u4ee3\u7801<\/strong><\/p>\n<ul>\n<li>\u5728 Notepad++ \u4e2d\u6253\u5f00 Python \u4ee3\u7801\u6587\u4ef6<\/li>\n<li>\u6309\u4e0b\u5feb\u6377\u952e\u201cF6\u201d<\/li>\n<li>\u4ee3\u7801\u5c06\u5728\u63a7\u5236\u53f0\u4e2d\u8fd0\u884c\uff0c\u8f93\u51fa\u5c06\u663e\u793a\u5728\u201c\u8f93\u51fa\u201d\u9762\u677f\u4e2d\u3002<\/li>\n<\/ul>\n<p><strong>\u793a\u4f8b<\/strong><\/p>\n<p>\u5728 Notepad++ \u4e2d\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a test.py \u7684\u6587\u4ef6\uff0c\u5e76\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre>print(\"Hello World!\")<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6309\u4e0b\u201cF6\u201d\u8fd0\u884c\u4ee3\u7801\uff0c\u4f60\u4f1a\u5728\u63a7\u5236\u53f0\u4e2d\u770b\u5230\u4ee5\u4e0b\u8f93\u51fa\uff1a<\/p>\n<pre>Hello World!<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f+\u600e\u4e48\u8fd0\u884c\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 notepad++ \u4e2d\u8fd0\u884c python \u4ee3\u7801\u9700\u8981\u5b89\u88c5 python \u53ef\u6267\u884c\u6587\u4ef6\u548c nppexec \u63d2\u4ef6\u3002\u5b89\u88c5 python \u5e76\u4e3a\u5176\u6dfb\u52a0 path \u540e\uff0c\u5728 nppexec \u63d2\u4ef6\u4e2d\u914d\u7f6e\u547d\u4ee4\u4e3a\u201cpython\u201d\u3001\u53c2\u6570\u4e3a\u201c{current_directory}{file_name}\u201d\uff0c\u5373\u53ef\u5728 notepad++ \u4e2d\u901a\u8fc7\u5feb\u6377\u952e\u201cf6\u201d\u8fd0\u884c python \u4ee3\u7801\u3002 \u5728 Notepad++ \u4e2d\u8fd0\u884c Python \u4ee3\u7801 \u8981\u4f7f\u7528 Notepad++ \u8fd0\u884c Python \u4ee3\u7801\uff0c\u9700\u8981\u5b89\u88c5 Python \u53ef\u6267\u884c\u6587\u4ef6\u548c Notepad++ \u63d2\u4ef6\u3002 \u5b89\u88c5 Python \u53ef\u6267\u884c\u6587\u4ef6 \u4e0b\u8f7d Python \u5b89\u88c5\u7a0b\u5e8f\uff08https:\/\/www..org\/downloads\/\uff09 \u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\u5e76\u9009\u62e9\u201c\u6dfb\u52a0 Python 3.x \u5230 PATH\u201d\u9009\u9879\u3002 \u5b89\u88c5 Notepad++ \u63d2\u4ef6 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u6253\u5f00 Notepad++ \u70b9\u51fb\u201c\u63d2\u4ef6\u201d-&gt;\u201c\u63d2\u4ef6\u7ba1\u7406\u5668\u201d \u641c\u7d22\u201cNppExec\u201d\u5e76\u5b89\u88c5\u5b83 \u914d\u7f6e\u63d2\u4ef6 \u91cd\u65b0\u542f\u52a8 Notepad++ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-21461","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=21461"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21461\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}