{"id":20669,"date":"2024-11-19T17:04:57","date_gmt":"2024-11-19T09:04:57","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20669\/"},"modified":"2024-11-19T17:04:57","modified_gmt":"2024-11-19T09:04:57","slug":"sublime-test%e6%80%8e%e4%b9%88%e8%bf%90%e8%a1%8cinput","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20669\/","title":{"rendered":"sublime test\u600e\u4e48\u8fd0\u884cinput"},"content":{"rendered":"<blockquote><p>\n  sublime text \u8fd0\u884c\u8f93\u5165\u7684\u65b9\u6cd5\u6709\u56db\u79cd\uff1a\u5185\u7f6e python shell\u547d\u4ee4\u9762\u677f\u952e\u76d8\u5feb\u6377\u952e (f5\/cmd + b)\u6784\u5efa\u7cfb\u7edf\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/03\/2024040311541823299.jpg\" class=\"aligncenter\" title=\"sublime test\u600e\u4e48\u8fd0\u884cinput\u63d2\u56fe\" alt=\"sublime test\u600e\u4e48\u8fd0\u884cinput\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 Sublime Text \u4e2d\u8fd0\u884c\u8f93\u5165<\/strong><\/p>\n<p>Sublime Text \u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u5b83\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u5f0f\u6765\u8fd0\u884c\u8f93\u5165\u3002\u4e0b\u9762\u662f\u5176\u4e2d\u4e00\u4e9b\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff1a<\/p>\n<p><strong>1. \u4f7f\u7528\u5185\u7f6e Python Shell<\/strong><\/p>\n<ul>\n<li>\u6309\u4e0b Ctrl + ~\uff08Windows \u548c Linux\uff09\u6216 Cmd + ~\uff08Mac\uff09\u6253\u5f00 Python Shell\u3002<\/li>\n<li>\u5728 shell \u4e2d\u8f93\u5165\u60a8\u7684\u4ee3\u7801\u5e76\u6309 Enter \u952e\u8fd0\u884c\u3002<\/li>\n<\/ul>\n<p><strong>2. \u4f7f\u7528\u547d\u4ee4\u9762\u677f<\/strong><\/p>\n<ul>\n<li>\u6309\u4e0b Ctrl + Shift + P\uff08Windows \u548c Linux\uff09\u6216 Cmd + Shift + P\uff08Mac\uff09\u6253\u5f00\u547d\u4ee4\u9762\u677f\u3002<\/li>\n<li>\u8f93\u5165 &#8220;run&#8221;\uff0c\u7136\u540e\u9009\u62e9\u8981\u8fd0\u884c\u7684\u547d\u4ee4\uff0c\u4f8b\u5982 &#8220;Run Python in current file&#8221;\u3002<\/li>\n<\/ul>\n<p><strong>3. \u4f7f\u7528\u952e\u76d8\u5feb\u6377\u952e<\/strong><\/p>\n<ul>\n<li>\u6309\u4e0b F5\uff08Windows \u548c Linux\uff09\u6216 Cmd + B\uff08Mac\uff09\u8fd0\u884c\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<p><strong>4. \u4f7f\u7528\u6784\u5efa\u7cfb\u7edf<\/strong><\/p>\n<ul>\n<li>\u9009\u62e9\u8981\u8fd0\u884c\u7684\u6784\u5efa\u7cfb\u7edf\uff0c\u4f8b\u5982 &#8220;Python&#8221;\u3002<\/li>\n<li>\u6309\u4e0b Ctrl + B\uff08Windows \u548c Linux\uff09\u6216 Cmd + B\uff08Mac\uff09\u7f16\u8bd1\u5e76\u8fd0\u884c\u4ee3\u7801\u3002<\/li>\n<\/ul>\n<p><strong>\u6ce8\u610f\uff1a<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd Sublime Text \u4e2d\u5df2\u5b89\u88c5 Python\u3002<\/li>\n<li>\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662f\u81ea\u5b9a\u4e49\u6784\u5efa\u7cfb\u7edf\uff0c\u8bf7\u786e\u4fdd\u5df2\u6b63\u786e\u914d\u7f6e\u3002<\/li>\n<li>\u5982\u679c\u60a8\u5728\u8fd0\u884c\u8f93\u5165\u65f6\u9047\u5230\u95ee\u9898\uff0c\u8bf7\u68c0\u67e5\u60a8\u7684\u4ee3\u7801\u4e2d\u662f\u5426\u5b58\u5728\u8bed\u6cd5\u9519\u8bef\u6216\u5176\u4ed6\u95ee\u9898\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f test\u600e\u4e48\u8fd0\u884cinput\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>sublime text \u8fd0\u884c\u8f93\u5165\u7684\u65b9\u6cd5\u6709\u56db\u79cd\uff1a\u5185\u7f6e python shell\u547d\u4ee4\u9762\u677f\u952e\u76d8\u5feb\u6377\u952e (f5\/cmd + b)\u6784\u5efa\u7cfb\u7edf \u5982\u4f55\u5728 Sublime Text \u4e2d\u8fd0\u884c\u8f93\u5165 Sublime Text \u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u5b83\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u5f0f\u6765\u8fd0\u884c\u8f93\u5165\u3002\u4e0b\u9762\u662f\u5176\u4e2d\u4e00\u4e9b\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff1a 1. \u4f7f\u7528\u5185\u7f6e Python Shell \u6309\u4e0b Ctrl + ~\uff08Windows \u548c Linux\uff09\u6216 Cmd + ~\uff08Mac\uff09\u6253\u5f00 Python Shell\u3002 \u5728 shell \u4e2d\u8f93\u5165\u60a8\u7684\u4ee3\u7801\u5e76\u6309 Enter \u952e\u8fd0\u884c\u3002 2. \u4f7f\u7528\u547d\u4ee4\u9762\u677f \u6309\u4e0b Ctrl + Shift + P\uff08Windows \u548c Linux\uff09\u6216 Cmd + Shift + P\uff08Mac\uff09\u6253\u5f00\u547d\u4ee4\u9762\u677f\u3002 \u8f93\u5165 &#8220;run&#8221;\uff0c\u7136\u540e\u9009\u62e9\u8981\u8fd0\u884c\u7684\u547d\u4ee4\uff0c\u4f8b\u5982 &#8220;Run Python in [&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-20669","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20669","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=20669"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20669\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}