{"id":976306,"date":"2024-12-27T06:20:31","date_gmt":"2024-12-26T22:20:31","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/976306.html"},"modified":"2024-12-27T06:20:33","modified_gmt":"2024-12-26T22:20:33","slug":"%e5%a6%82%e4%bd%95%e7%94%a8notepad%e6%89%93%e5%bc%80python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/976306.html","title":{"rendered":"\u5982\u4f55\u7528notepad\u6253\u5f00python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24201132\/4e5f3527-7e56-4498-a353-41de4abbf4dc.webp\" alt=\"\u5982\u4f55\u7528notepad\u6253\u5f00python\" \/><\/p>\n<p><p> <strong>\u8981\u7528Notepad\u6253\u5f00Python\u6587\u4ef6\uff0c\u53ef\u4ee5\u901a\u8fc7\u53f3\u952e\u5355\u51fb\u6587\u4ef6\u3001\u9009\u62e9\u201c\u6253\u5f00\u65b9\u5f0f\u201d\u3001\u9009\u62e9Notepad\u6216\u8005\u62d6\u62fd\u6587\u4ef6\u5230Notepad\u4e2d\u8fdb\u884c\u6253\u5f00\u3002<\/strong> \u5176\u4e2d\uff0c<strong>\u4f7f\u7528\u53f3\u952e\u5355\u51fb\u6587\u4ef6\u7684\u65b9\u6cd5\u662f\u6700\u7b80\u5355\u548c\u76f4\u63a5\u7684<\/strong>\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\u5728Notepad\u4e2d\u6253\u5f00Python\u6587\u4ef6\uff0c\u5e76\u63a2\u8ba8\u4e00\u4e9b\u53ef\u80fd\u7684\u6ce8\u610f\u4e8b\u9879\u548c\u6280\u5de7\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u53f3\u952e\u5355\u51fb\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u53f3\u952e\u5355\u51fb\u6587\u4ef6\u6253\u5f00Python\u6587\u4ef6\u662f\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002\u9996\u5148\uff0c\u627e\u5230\u4f60\u7684Python\u6587\u4ef6\uff0c\u8fd9\u901a\u5e38\u662f\u4e00\u4e2a\u4ee5\u201c.py\u201d\u7ed3\u5c3e\u7684\u6587\u4ef6\u3002\u5728\u6587\u4ef6\u4e0a\u53f3\u952e\u5355\u51fb\uff0c\u7136\u540e\u9009\u62e9\u201c\u6253\u5f00\u65b9\u5f0f\u201d\u9009\u9879\u3002\u5728\u5f39\u51fa\u7684\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u201c\u8bb0\u4e8b\u672c\uff08Notepad\uff09\u201d\u3002\u5982\u679c\u201c\u8bb0\u4e8b\u672c\u201d\u6ca1\u6709\u51fa\u73b0\u5728\u5217\u8868\u4e2d\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u201c\u9009\u62e9\u5176\u4ed6\u5e94\u7528\u201d\uff0c\u7136\u540e\u4ece\u5217\u8868\u4e2d\u627e\u5230\u201c\u8bb0\u4e8b\u672c\u201d\u3002\u5982\u679c\u4f60\u5e0c\u671b\u4ee5\u540e\u603b\u662f\u7528Notepad\u6253\u5f00Python\u6587\u4ef6\uff0c\u53ef\u4ee5\u52fe\u9009\u201c\u59cb\u7ec8\u4f7f\u7528\u6b64\u5e94\u7528\u6253\u5f00.py\u6587\u4ef6\u201d\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u52bf\u5728\u4e8e\u7b80\u5355\u5feb\u6377\uff0c\u5e76\u4e14\u4e0d\u9700\u8981\u8fdb\u884c\u4efb\u4f55\u8bbe\u7f6e\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u62d6\u62fd\u6587\u4ef6\u5230Notepad\u4e2d<\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u5df2\u7ecf\u6253\u5f00\u4e86Notepad\uff0c\u4f60\u4e5f\u53ef\u4ee5\u7b80\u5355\u5730\u5c06Python\u6587\u4ef6\u62d6\u653e\u5230Notepad\u7684\u7a97\u53e3\u4e2d\u3002\u8fd9\u79cd\u65b9\u6cd5\u540c\u6837\u7b80\u5355\uff0c\u5e76\u4e14\u53ef\u4ee5\u5728\u4e00\u6b21\u6253\u5f00\u591a\u4e2a\u6587\u4ef6\u65f6\u7279\u522b\u6709\u7528\u3002\u9996\u5148\uff0c\u6253\u5f00Notepad\uff0c\u7136\u540e\u5728\u6587\u4ef6<a href=\"https:\/\/docs.pingcode.com\/blog\/project-management\/58557.html\" target=\"_blank\">\u8d44\u6e90\u7ba1\u7406<\/a>\u5668\u4e2d\u627e\u5230\u4f60\u7684Python\u6587\u4ef6\u3002\u6309\u4f4f\u6587\u4ef6\u4e0d\u653e\uff0c\u5c06\u5176\u62d6\u52a8\u5230Notepad\u7684\u7a97\u53e3\u4e2d\u5e76\u91ca\u653e\u9f20\u6807\u6309\u94ae\u3002\u6587\u4ef6\u7684\u5185\u5bb9\u5c06\u4f1a\u663e\u793a\u5728Notepad\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528\u547d\u4ee4\u884c\u6253\u5f00<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u66f4\u719f\u6089\u547d\u4ee4\u884c\u7684\u7528\u6237\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u884c\u547d\u4ee4\u6765\u6253\u5f00Python\u6587\u4ef6\u3002\u9996\u5148\uff0c\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08\u5728Windows\u4e2d\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u6309Win+R\u952e\uff0c\u7136\u540e\u8f93\u5165\u201ccmd\u201d\u5e76\u6309Enter\u952e\u6765\u6253\u5f00\uff09\u3002\u7136\u540e\uff0c\u5bfc\u822a\u5230\u5305\u542b\u4f60\u7684Python\u6587\u4ef6\u7684\u76ee\u5f55\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u7684\u6587\u4ef6\u4f4d\u4e8e\u201cC:\\Users\\YourName\\Documents\\\u201d\u4e2d\uff0c\u8f93\u5165\u201ccd C:\\Users\\YourName\\Documents\\\u201d\u3002\u7136\u540e\uff0c\u8f93\u5165\u201cnotepad filename.py\u201d\uff0c\u5176\u4e2d\u201cfilename.py\u201d\u662f\u4f60\u7684Python\u6587\u4ef6\u7684\u540d\u79f0\u3002\u8fd9\u5c06\u4f1a\u5728Notepad\u4e2d\u6253\u5f00\u8be5\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u8bbe\u7f6eNotepad\u4e3a\u9ed8\u8ba4\u7a0b\u5e8f<\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u5e0c\u671b\u6bcf\u6b21\u53cc\u51fbPython\u6587\u4ef6\u65f6\u90fd\u7528Notepad\u6253\u5f00\uff0c\u4f60\u53ef\u4ee5\u5c06Notepad\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4\u7a0b\u5e8f\u3002\u53f3\u952e\u5355\u51fb\u4e00\u4e2aPython\u6587\u4ef6\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002\u5728\u201c\u5e38\u89c4\u201d\u9009\u9879\u5361\u4e2d\uff0c\u70b9\u51fb\u201c\u66f4\u6539\u201d\u6309\u94ae\uff0c\u7136\u540e\u9009\u62e9\u201c\u8bb0\u4e8b\u672c\u201d\u4f5c\u4e3a\u9ed8\u8ba4\u7a0b\u5e8f\u3002\u8fd9\u6837\uff0c\u6bcf\u6b21\u4f60\u53cc\u51fb\u4e00\u4e2aPython\u6587\u4ef6\u65f6\uff0c\u5b83\u90fd\u4f1a\u5728Notepad\u4e2d\u6253\u5f00\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u597d\u5904\u5728\u4e8e\uff0c\u5b83\u7b80\u5316\u4e86\u6253\u5f00\u6587\u4ef6\u7684\u6b65\u9aa4\uff0c\u7279\u522b\u662f\u5f53\u4f60\u7ecf\u5e38\u9700\u8981\u67e5\u770b\u548c\u7f16\u8f91Python\u4ee3\u7801\u65f6\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u6ce8\u610f\u4e8b\u9879\u548c\u6280\u5de7<\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528Notepad\u6253\u5f00Python\u6587\u4ef6\u65f6\uff0c\u6709\u51e0\u4e2a\u9700\u8981\u6ce8\u610f\u7684\u4e8b\u9879\u3002\u9996\u5148\uff0cNotepad\u662f\u4e00\u4e2a\u975e\u5e38\u57fa\u7840\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u56e0\u6b64\u5b83\u4e0d\u63d0\u4f9b\u8bed\u6cd5\u9ad8\u4eae\u3001\u81ea\u52a8\u8865\u5168\u7b49\u9ad8\u7ea7\u529f\u80fd\u3002\u5982\u679c\u4f60\u9700\u8981\u8fd9\u4e9b\u529f\u80fd\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u66f4\u4e3a\u4e13\u4e1a\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u5982Visual Studio Code\u3001PyCharm\u6216Sublime Text\u3002\u5176\u6b21\uff0c\u786e\u4fdd\u4f60\u7684Python\u6587\u4ef6\u662f\u4ee5\u7eaf\u6587\u672c\u683c\u5f0f\u4fdd\u5b58\u7684\uff0c\u5426\u5219Notepad\u53ef\u80fd\u65e0\u6cd5\u6b63\u786e\u663e\u793a\u6587\u4ef6\u5185\u5bb9\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u7528Notepad\u6253\u5f00Python\u6587\u4ef6\u662f\u4e00\u9879\u7b80\u5355\u4f46\u91cd\u8981\u7684\u6280\u80fd\uff0c\u7279\u522b\u662f\u5728\u9700\u8981\u5feb\u901f\u67e5\u770b\u6216\u7f16\u8f91\u4ee3\u7801\u65f6\u3002<strong>\u4f7f\u7528\u53f3\u952e\u5355\u51fb\u6587\u4ef6\u3001\u62d6\u62fd\u6587\u4ef6\u5230Notepad\u4e2d\u3001\u4f7f\u7528\u547d\u4ee4\u884c\u547d\u4ee4\u548c\u5c06Notepad\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4\u7a0b\u5e8f<\/strong>\u90fd\u662f\u6709\u6548\u7684\u65b9\u6cd5\u3002\u867d\u7136Notepad\u7684\u529f\u80fd\u6709\u9650\uff0c\u4f46\u5b83\u7684\u7b80\u6d01\u548c\u6613\u7528\u6027\u4f7f\u5176\u6210\u4e3a\u5904\u7406Python\u6587\u4ef6\u7684\u4e00\u4e2a\u5b9e\u7528\u5de5\u5177\u3002\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u7f16\u8f91\u4efb\u52a1\uff0c\u5efa\u8bae\u4f7f\u7528\u529f\u80fd\u66f4\u5f3a\u5927\u7684\u7f16\u8f91\u5668\uff0c\u4ee5\u63d0\u9ad8\u6548\u7387\u548c\u4ee3\u7801\u8d28\u91cf\u3002\u901a\u8fc7\u638c\u63e1\u8fd9\u4e9b\u6280\u5de7\uff0c\u4f60\u53ef\u4ee5\u66f4\u8f7b\u677e\u5730\u5904\u7406\u548c\u7ba1\u7406\u4f60\u7684Python\u9879\u76ee\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Notepad\u4e2d\u7f16\u5199Python\u4ee3\u7801\u5e76\u8fd0\u884c\uff1f<\/strong><br \/>\u60a8\u53ef\u4ee5\u5728Notepad\u4e2d\u7f16\u5199Python\u4ee3\u7801\uff0c\u9996\u5148\u6253\u5f00Notepad\u5e76\u8f93\u5165\u60a8\u7684Python\u4ee3\u7801\u3002\u5b8c\u6210\u540e\uff0c\u5c06\u6587\u4ef6\u4fdd\u5b58\u4e3a<code>.py<\/code>\u6269\u5c55\u540d\uff0c\u4f8b\u5982<code>script.py<\/code>\u3002\u7136\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\uff0c\u5bfc\u822a\u5230\u8be5\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\u5e76\u8fd0\u884c<code>python script.py<\/code>\u547d\u4ee4\u6765\u6267\u884c\u4ee3\u7801\u3002<\/p>\n<p><strong>Notepad\u4e0e\u5176\u4ed6\u4ee3\u7801\u7f16\u8f91\u5668\u76f8\u6bd4\uff0c\u6709\u54ea\u4e9b\u4f18\u7f3a\u70b9\uff1f<\/strong><br \/>Notepad\u662f\u4e00\u6b3e\u7b80\u5355\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u9002\u5408\u5feb\u901f\u7f16\u5199\u5c0f\u6bb5\u4ee3\u7801\uff0c\u4f46\u7f3a\u4e4f\u4ee3\u7801\u9ad8\u4eae\u548c\u81ea\u52a8\u5b8c\u6210\u529f\u80fd\u3002\u76f8\u5bf9\u800c\u8a00\uff0c\u50cfVisual Studio Code\u6216PyCharm\u7b49IDE\u63d0\u4f9b\u66f4\u591a\u529f\u80fd\uff0c\u5982\u8c03\u8bd5\u5de5\u5177\u3001\u4ee3\u7801\u63d0\u793a\u548c\u7248\u672c\u63a7\u5236\u96c6\u6210\uff0c\u8fd9\u5bf9\u4e8e\u5927\u578b\u9879\u76ee\u6216\u590d\u6742\u4ee3\u7801\u66f4\u4e3a\u4fbf\u5229\u3002<\/p>\n<p><strong>\u5982\u4f55\u8bbe\u7f6eNotepad\u4ee5\u4fbf\u66f4\u65b9\u4fbf\u5730\u7f16\u5199Python\u4ee3\u7801\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574Notepad\u7684\u8bbe\u7f6e\u6765\u63d0\u9ad8\u7f16\u5199Python\u4ee3\u7801\u7684\u6548\u7387\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u542f\u7528\u201c\u5b57\u5f62\u201d\u9009\u9879\u6765\u6539\u5584\u53ef\u8bfb\u6027\uff0c\u4f7f\u7528\u201c\u6362\u884c\u201d\u529f\u80fd\u786e\u4fdd\u4ee3\u7801\u5728\u884c\u5c3e\u4e0d\u4f1a\u88ab\u622a\u65ad\u3002\u6b64\u5916\uff0c\u5c3d\u7ba1Notepad\u672c\u8eab\u6ca1\u6709\u8bed\u6cd5\u9ad8\u4eae\u529f\u80fd\uff0c\u60a8\u53ef\u4ee5\u8003\u8651\u4f7f\u7528Notepad++\u7b49\u589e\u5f3a\u7248\u6587\u672c\u7f16\u8f91\u5668\uff0c\u4ee5\u83b7\u5f97\u66f4\u597d\u7684\u7f16\u7a0b\u4f53\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u7528Notepad\u6253\u5f00Python\u6587\u4ef6\uff0c\u53ef\u4ee5\u901a\u8fc7\u53f3\u952e\u5355\u51fb\u6587\u4ef6\u3001\u9009\u62e9\u201c\u6253\u5f00\u65b9\u5f0f\u201d\u3001\u9009\u62e9Notepad\u6216\u8005\u62d6\u62fd\u6587\u4ef6 [&hellip;]","protected":false},"author":3,"featured_media":976313,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/976306"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=976306"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/976306\/revisions"}],"predecessor-version":[{"id":976315,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/976306\/revisions\/976315"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/976313"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=976306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=976306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=976306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}