{"id":20864,"date":"2024-11-19T14:27:36","date_gmt":"2024-11-19T06:27:36","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20864\/"},"modified":"2024-11-19T14:27:36","modified_gmt":"2024-11-19T06:27:36","slug":"notepad%e5%86%99%e7%9a%84%e7%a8%8b%e5%ba%8f%e6%80%8e%e4%b9%88%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20864\/","title":{"rendered":"notepad\u5199\u7684\u7a0b\u5e8f\u600e\u4e48\u8fd0\u884c"},"content":{"rendered":"<blockquote><p>\n  \u76f4\u63a5\u53cc\u51fb notepad \u4e2d\u4fdd\u5b58\u7684\u7a0b\u5e8f\u6587\u4ef6\u662f\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u3002\u4e5f\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u63d0\u793a\u7b26\u6216 powershell \u5bfc\u822a\u5230\u7a0b\u5e8f\u6587\u4ef6\u76ee\u5f55\u5e76\u4f7f\u7528\u6307\u5b9a\u547d\u4ee4\u8fd0\u884c\u7a0b\u5e8f\u3002\u60a8\u8fd8\u53ef\u4ee5\u8bbe\u7f6e\u6587\u4ef6\u5173\u8054\uff0c\u4ee5\u4fbf\u7279\u5b9a\u7a0b\u5e8f\u81ea\u52a8\u8fd0\u884c\u4e0e\u7279\u5b9a\u6587\u4ef6\u7c7b\u578b\u5173\u8054\u7684\u7a0b\u5e8f\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/08\/2024040803032284063.jpg\" class=\"aligncenter\" title=\"notepad\u5199\u7684\u7a0b\u5e8f\u600e\u4e48\u8fd0\u884c\u63d2\u56fe\" alt=\"notepad\u5199\u7684\u7a0b\u5e8f\u600e\u4e48\u8fd0\u884c\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u8fd0\u884c Notepad \u4e2d\u7f16\u5199\u7684\u7a0b\u5e8f<\/strong><\/p>\n<p><strong>\u76f4\u63a5\u53cc\u51fb\u6587\u4ef6<\/strong><\/p>\n<p>\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u76f4\u63a5\u53cc\u51fb Notepad \u4e2d\u4fdd\u5b58\u7684\u7a0b\u5e8f\u6587\u4ef6\u3002Windows \u5c06\u81ea\u52a8\u8bc6\u522b\u6587\u4ef6\u7c7b\u578b\u5e76\u8fd0\u884c\u76f8\u5e94\u7684\u7a0b\u5e8f\u3002<\/p>\n<p><strong>\u4f7f\u7528\u547d\u4ee4\u63d0\u793a\u7b26<\/strong><\/p>\n<ol>\n<li>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08cmd.exe\uff09\u3002<\/li>\n<li>\u5bfc\u822a\u5230\u7a0b\u5e8f\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\u3002<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/li>\n<\/ol>\n<pre>program_name.extension<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4f8b\u5982\uff0c\u8981\u8fd0\u884c\u540d\u4e3a &#8220;test.py&#8221; \u7684 Python \u7a0b\u5e8f\uff0c\u8bf7\u8f93\u5165\uff1a<\/p>\n<pre>python test.py<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u4f7f\u7528 PowerShell<\/strong><\/p>\n<p>\u4e0e\u547d\u4ee4\u63d0\u793a\u7b26\u7c7b\u4f3c\uff0c\u60a8\u4e5f\u53ef\u4ee5\u4f7f\u7528 PowerShell \u8fd0\u884c\u7a0b\u5e8f\uff1a<\/p>\n<ol>\n<li>\u6253\u5f00 PowerShell\u3002<\/li>\n<li>\u5bfc\u822a\u5230\u7a0b\u5e8f\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\u3002<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/li>\n<\/ol>\n<pre>&amp; .program_name.extension<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4f8b\u5982\uff0c\u8981\u8fd0\u884c\u540d\u4e3a &#8220;test.ps1&#8221; \u7684 PowerShell \u811a\u672c\uff0c\u8bf7\u8f93\u5165\uff1a<\/p>\n<pre>&amp; .\test.ps1<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u914d\u7f6e\u6587\u4ef6\u5173\u8054<\/strong><\/p>\n<p>\u60a8\u53ef\u4ee5\u5c06\u7279\u5b9a\u6587\u4ef6\u7c7b\u578b\u4e0e\u7279\u5b9a\u7a0b\u5e8f\u5173\u8054\uff0c\u4ee5\u4fbf\u53cc\u51fb\u6587\u4ef6\u65f6\u81ea\u52a8\u8fd0\u884c\u8be5\u7a0b\u5e8f\uff1a<\/p>\n<ol>\n<li>\u53f3\u952e\u5355\u51fb\u7a0b\u5e8f\u6587\u4ef6\u3002<\/li>\n<li>\u9009\u62e9 &#8220;\u6253\u5f00\u65b9\u5f0f&#8221; &gt; &#8220;\u9009\u62e9\u53e6\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f&#8221;\u3002<\/li>\n<li>\u627e\u5230\u5e76\u9009\u62e9\u60a8\u8981\u5173\u8054\u7684\u7a0b\u5e8f\uff0c\u52fe\u9009 &#8220;\u59cb\u7ec8\u4f7f\u7528\u8fd9\u4e2a\u5e94\u7528\u7a0b\u5e8f\u6253\u5f00 .ext \u6587\u4ef6&#8221;\u3002<\/li>\n<\/ol>\n<p><strong>\u63d0\u793a\uff1a<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u6587\u4ef6\u6269\u5c55\u540d\u4e0e\u60a8\u4f7f\u7528\u7684\u7f16\u7a0b\u8bed\u8a00\u5339\u914d\uff08\u4f8b\u5982 .py\u3001.ps1\u3001.bat\uff09\u3002<\/li>\n<li>\u5982\u679c\u7a0b\u5e8f\u9700\u8981\u53c2\u6570\uff0c\u8bf7\u5728\u547d\u4ee4\u884c\u6216\u811a\u672c\u4e2d\u6dfb\u52a0\u5b83\u4eec\u3002<\/li>\n<li>\u67d0\u4e9b\u7a0b\u5e8f\u9700\u8981\u5728\u7279\u5b9a\u73af\u5883\u4e2d\u8fd0\u884c\uff0c\u4f8b\u5982 Python \u9700\u8981\u5b89\u88c5 Python \u89e3\u91ca\u5668\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5199\u7684\u7a0b\u5e8f\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>\u76f4\u63a5\u53cc\u51fb notepad \u4e2d\u4fdd\u5b58\u7684\u7a0b\u5e8f\u6587\u4ef6\u662f\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u3002\u4e5f\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u63d0\u793a\u7b26\u6216 powershell \u5bfc\u822a\u5230\u7a0b\u5e8f\u6587\u4ef6\u76ee\u5f55\u5e76\u4f7f\u7528\u6307\u5b9a\u547d\u4ee4\u8fd0\u884c\u7a0b\u5e8f\u3002\u60a8\u8fd8\u53ef\u4ee5\u8bbe\u7f6e\u6587\u4ef6\u5173\u8054\uff0c\u4ee5\u4fbf\u7279\u5b9a\u7a0b\u5e8f\u81ea\u52a8\u8fd0\u884c\u4e0e\u7279\u5b9a\u6587\u4ef6\u7c7b\u578b\u5173\u8054\u7684\u7a0b\u5e8f\u3002 \u5982\u4f55\u8fd0\u884c Notepad \u4e2d\u7f16\u5199\u7684\u7a0b\u5e8f \u76f4\u63a5\u53cc\u51fb\u6587\u4ef6 \u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u76f4\u63a5\u53cc\u51fb Notepad \u4e2d\u4fdd\u5b58\u7684\u7a0b\u5e8f\u6587\u4ef6\u3002Windows \u5c06\u81ea\u52a8\u8bc6\u522b\u6587\u4ef6\u7c7b\u578b\u5e76\u8fd0\u884c\u76f8\u5e94\u7684\u7a0b\u5e8f\u3002 \u4f7f\u7528\u547d\u4ee4\u63d0\u793a\u7b26 \u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08cmd.exe\uff09\u3002 \u5bfc\u822a\u5230\u7a0b\u5e8f\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\u3002 \u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a program_name.extension \u767b\u5f55\u540e\u590d\u5236 \u4f8b\u5982\uff0c\u8981\u8fd0\u884c\u540d\u4e3a &#8220;test.py&#8221; \u7684 Python \u7a0b\u5e8f\uff0c\u8bf7\u8f93\u5165\uff1a python test.py \u767b\u5f55\u540e\u590d\u5236 \u4f7f\u7528 PowerShell \u4e0e\u547d\u4ee4\u63d0\u793a\u7b26\u7c7b\u4f3c\uff0c\u60a8\u4e5f\u53ef\u4ee5\u4f7f\u7528 PowerShell \u8fd0\u884c\u7a0b\u5e8f\uff1a \u6253\u5f00 PowerShell\u3002 \u5bfc\u822a\u5230\u7a0b\u5e8f\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\u3002 \u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a &amp; .program_name.extension \u767b\u5f55\u540e\u590d\u5236 \u4f8b\u5982\uff0c\u8981\u8fd0\u884c\u540d\u4e3a &#8220;test.ps1&#8221; \u7684 PowerShell \u811a\u672c\uff0c\u8bf7\u8f93\u5165\uff1a &amp; . est.ps1 \u767b\u5f55\u540e\u590d\u5236 \u914d\u7f6e\u6587\u4ef6\u5173\u8054 \u60a8\u53ef\u4ee5\u5c06\u7279\u5b9a\u6587\u4ef6\u7c7b\u578b\u4e0e\u7279\u5b9a\u7a0b\u5e8f\u5173\u8054\uff0c\u4ee5\u4fbf\u53cc\u51fb\u6587\u4ef6\u65f6\u81ea\u52a8\u8fd0\u884c\u8be5\u7a0b\u5e8f\uff1a \u53f3\u952e\u5355\u51fb\u7a0b\u5e8f\u6587\u4ef6\u3002 \u9009\u62e9 &#8220;\u6253\u5f00\u65b9\u5f0f&#8221; &gt; &#8220;\u9009\u62e9\u53e6\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f&#8221;\u3002 [&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-20864","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20864","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=20864"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20864\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}