{"id":1085726,"date":"2025-01-08T13:18:55","date_gmt":"2025-01-08T05:18:55","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1085726.html"},"modified":"2025-01-08T13:18:57","modified_gmt":"2025-01-08T05:18:57","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8ce%e4%b8%ad%e7%9b%b4%e6%8e%a5%e6%95%b2python%e4%bb%a3%e7%a0%81-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1085726.html","title":{"rendered":"\u5982\u4f55\u5728CE\u4e2d\u76f4\u63a5\u6572python\u4ee3\u7801"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24195500\/11e4e076-5348-4889-ad38-56cecfd23669.webp\" alt=\"\u5982\u4f55\u5728CE\u4e2d\u76f4\u63a5\u6572python\u4ee3\u7801\" \/><\/p>\n<p><p> <strong>\u5728CE\uff08Code Editor\uff09\u4e2d\u76f4\u63a5\u6572Python\u4ee3\u7801\u7684\u65b9\u6cd5\u6709\uff1a\u5b89\u88c5Python\u6269\u5c55\u3001\u8bbe\u7f6ePython\u89e3\u91ca\u5668\u3001\u4f7f\u7528Python\u547d\u4ee4\u884c\u3001\u7f16\u5199Python\u811a\u672c\u3001\u4f7f\u7528Jupyter Notebook\u6269\u5c55\u3002<\/strong> \u4e0b\u9762\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5b9e\u73b0\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u4ee5\u5e2e\u52a9\u4f60\u5728CE\u4e2d\u66f4\u52a0\u9ad8\u6548\u5730\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5Python\u6269\u5c55<\/p>\n<\/p>\n<p><p>\u8981\u5728Code Editor\u4e2d\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u76f8\u5e94\u7684Python\u6269\u5c55\u3002\u4ee5Visual Studio Code\uff08VS Code\uff09\u4e3a\u4f8b\uff0c\u6253\u5f00VS Code\u540e\uff0c\u70b9\u51fb\u5de6\u4fa7\u7684\u6269\u5c55\u56fe\u6807\uff08\u4e00\u4e2a\u65b9\u5757\uff09\uff0c\u5728\u641c\u7d22\u6846\u4e2d\u8f93\u5165\u201cPython\u201d\uff0c\u627e\u5230\u5e76\u5b89\u88c5\u7531Microsoft\u63d0\u4f9b\u7684Python\u6269\u5c55\u3002\u8fd9\u5c06\u4e3a\u4f60\u63d0\u4f9b\u4ee3\u7801\u8865\u5168\u3001\u8bed\u6cd5\u9ad8\u4eae\u3001\u8c03\u8bd5\u7b49\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u65e6\u5b89\u88c5\u5b8c\u6210\uff0c\u91cd\u542fVS Code\uff0c\u4f60\u5c31\u53ef\u4ee5\u5f00\u59cb\u7f16\u5199Python\u4ee3\u7801\u4e86\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u8bbe\u7f6ePython\u89e3\u91ca\u5668<\/p>\n<\/p>\n<p><p>\u5b89\u88c5Python\u6269\u5c55\u540e\uff0c\u63a5\u4e0b\u6765\u9700\u8981\u8bbe\u7f6ePython\u89e3\u91ca\u5668\u3002\u70b9\u51fb\u5de6\u4e0b\u89d2\u7684Python\u7248\u672c\u53f7\uff0c\u6216\u8005\u6309\u4e0bCtrl+Shift+P\u6253\u5f00\u547d\u4ee4\u9762\u677f\uff0c\u8f93\u5165\u201cPython: Select Interpreter\u201d\uff0c\u9009\u62e9\u4f60\u5b89\u88c5\u7684Python\u89e3\u91ca\u5668\u3002\u8fd9\u6837\uff0cCode Editor\u5c31\u4f1a\u77e5\u9053\u4f7f\u7528\u54ea\u4e2aPython\u7248\u672c\u6765\u8fd0\u884c\u4f60\u7684\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528Python\u547d\u4ee4\u884c<\/p>\n<\/p>\n<p><p>\u5728Code Editor\u4e2d\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528Python\u547d\u4ee4\u884c\u6765\u6267\u884cPython\u4ee3\u7801\u3002\u6309\u4e0bCtrl+<code>\uff08\u53cd\u5f15\u53f7\uff09\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165<\/code>python<code>\u6216<\/code>python3`\u8fdb\u5165Python\u4ea4\u4e92\u6a21\u5f0f\u3002\u7136\u540e\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165Python\u4ee3\u7801\u5e76\u770b\u5230\u5373\u65f6\u7684\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">&gt;&gt;&gt; print(&quot;Hello, World!&quot;)<\/p>\n<p>Hello, World!<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001\u7f16\u5199Python\u811a\u672c<\/p>\n<\/p>\n<p><p>\u5728Code Editor\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u6587\u4ef6\uff08\u6269\u5c55\u540d\u4e3a.py\uff09\uff0c\u7136\u540e\u7f16\u5199\u4f60\u7684Python\u4ee3\u7801\u3002\u5b8c\u6210\u540e\uff0c\u6309\u4e0bF5\u952e\u6216\u53f3\u952e\u70b9\u51fb\u6587\u4ef6\u5e76\u9009\u62e9\u201c\u8fd0\u884cPython\u6587\u4ef6\u201d\u9009\u9879\uff0cCode Editor\u4f1a\u5728\u7ec8\u7aef\u4e2d\u8fd0\u884c\u8be5\u6587\u4ef6\u5e76\u663e\u793a\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>hello.py<\/code>\u7684\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello, World!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4fdd\u5b58\u6587\u4ef6\u540e\uff0c\u6309\u4e0bF5\u952e\uff0c\u7ec8\u7aef\u4e2d\u5c06\u663e\u793a\uff1a<\/p>\n<\/p>\n<p><pre><code>Hello, World!<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u4f7f\u7528Jupyter Notebook\u6269\u5c55<\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u4e60\u60ef\u4e8e\u4f7f\u7528Jupyter Notebook\uff0c\u4e5f\u53ef\u4ee5\u5728Code Editor\u4e2d\u5b89\u88c5Jupyter\u6269\u5c55\u3002\u6253\u5f00\u6269\u5c55\u5e02\u573a\uff0c\u641c\u7d22\u201cJupyter\u201d\uff0c\u5b89\u88c5\u7531Microsoft\u63d0\u4f9b\u7684Jupyter\u6269\u5c55\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u53ef\u4ee5\u521b\u5efa\u548c\u7f16\u8f91Jupyter Notebook\u6587\u4ef6\uff08\u6269\u5c55\u540d\u4e3a.ipynb\uff09\uff0c\u5e76\u5728Code Editor\u4e2d\u8fd0\u884c\u6bcf\u4e2a\u5355\u5143\u683c\u7684\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5728Jupyter Notebook\u4e2d<\/p>\n<p>print(&quot;Hello, World!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd0\u884c\u540e\uff0c\u8f93\u51fa\u7ed3\u679c\u5c06\u663e\u793a\u5728\u5355\u5143\u683c\u4e0b\u65b9\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u4e94\u79cd\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u5728Code Editor\u4e2d\u76f4\u63a5\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\uff0c\u63d0\u5347\u7f16\u7a0b\u6548\u7387\u548c\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b89\u88c5Python\u6269\u5c55<\/h3>\n<\/p>\n<p><p>\u8981\u5728Code Editor\u4e2d\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u76f8\u5e94\u7684Python\u6269\u5c55\u3002\u4ee5Visual Studio Code\uff08VS Code\uff09\u4e3a\u4f8b\uff0c\u6253\u5f00VS Code\u540e\uff0c\u70b9\u51fb\u5de6\u4fa7\u7684\u6269\u5c55\u56fe\u6807\uff08\u4e00\u4e2a\u65b9\u5757\uff09\uff0c\u5728\u641c\u7d22\u6846\u4e2d\u8f93\u5165\u201cPython\u201d\uff0c\u627e\u5230\u5e76\u5b89\u88c5\u7531Microsoft\u63d0\u4f9b\u7684Python\u6269\u5c55\u3002\u8fd9\u5c06\u4e3a\u4f60\u63d0\u4f9b\u4ee3\u7801\u8865\u5168\u3001\u8bed\u6cd5\u9ad8\u4eae\u3001\u8c03\u8bd5\u7b49\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p><strong>\u5b89\u88c5\u6b65\u9aa4\uff1a<\/strong><\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00VS Code\u3002<\/li>\n<li>\u70b9\u51fb\u5de6\u4fa7\u7684\u6269\u5c55\u56fe\u6807\uff08\u4e00\u4e2a\u65b9\u5757\uff09\u3002<\/li>\n<li>\u5728\u641c\u7d22\u6846\u4e2d\u8f93\u5165\u201cPython\u201d\u3002<\/li>\n<li>\u627e\u5230\u5e76\u5b89\u88c5\u7531Microsoft\u63d0\u4f9b\u7684Python\u6269\u5c55\u3002<\/li>\n<\/ol>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u91cd\u542fVS Code\uff0c\u4f60\u5c31\u53ef\u4ee5\u5f00\u59cb\u7f16\u5199Python\u4ee3\u7801\u4e86\u3002\u8fd9\u4e2a\u6269\u5c55\u5c06\u4e3a\u4f60\u63d0\u4f9b\u4e30\u5bcc\u7684\u529f\u80fd\u652f\u6301\uff0c\u5305\u62ec\u4ee3\u7801\u8865\u5168\u3001\u8bed\u6cd5\u9ad8\u4eae\u3001\u8c03\u8bd5\u3001\u4ee3\u7801\u7247\u6bb5\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u8bbe\u7f6ePython\u89e3\u91ca\u5668<\/h3>\n<\/p>\n<p><p>\u5b89\u88c5Python\u6269\u5c55\u540e\uff0c\u63a5\u4e0b\u6765\u9700\u8981\u8bbe\u7f6ePython\u89e3\u91ca\u5668\u3002\u70b9\u51fb\u5de6\u4e0b\u89d2\u7684Python\u7248\u672c\u53f7\uff0c\u6216\u8005\u6309\u4e0bCtrl+Shift+P\u6253\u5f00\u547d\u4ee4\u9762\u677f\uff0c\u8f93\u5165\u201cPython: Select Interpreter\u201d\uff0c\u9009\u62e9\u4f60\u5b89\u88c5\u7684Python\u89e3\u91ca\u5668\u3002\u8fd9\u6837\uff0cCode Editor\u5c31\u4f1a\u77e5\u9053\u4f7f\u7528\u54ea\u4e2aPython\u7248\u672c\u6765\u8fd0\u884c\u4f60\u7684\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p><strong>\u8bbe\u7f6e\u6b65\u9aa4\uff1a<\/strong><\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00VS Code\u3002<\/li>\n<li>\u70b9\u51fb\u5de6\u4e0b\u89d2\u7684Python\u7248\u672c\u53f7\u3002<\/li>\n<li>\u6309\u4e0bCtrl+Shift+P\u6253\u5f00\u547d\u4ee4\u9762\u677f\u3002<\/li>\n<li>\u8f93\u5165\u201cPython: Select Interpreter\u201d\u3002<\/li>\n<li>\u9009\u62e9\u4f60\u5b89\u88c5\u7684Python\u89e3\u91ca\u5668\u3002<\/li>\n<\/ol>\n<p><p>\u8bbe\u7f6e\u5b8c\u6210\u540e\uff0cVS Code\u5c06\u4f7f\u7528\u4f60\u9009\u62e9\u7684Python\u89e3\u91ca\u5668\u6765\u8fd0\u884cPython\u4ee3\u7801\u3002\u786e\u4fdd\u4f60\u9009\u62e9\u7684\u89e3\u91ca\u5668\u4e0e\u9879\u76ee\u7684\u9700\u6c42\u76f8\u5339\u914d\uff0c\u4ee5\u907f\u514d\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528Python\u547d\u4ee4\u884c<\/h3>\n<\/p>\n<p><p>\u5728Code Editor\u4e2d\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528Python\u547d\u4ee4\u884c\u6765\u6267\u884cPython\u4ee3\u7801\u3002\u6309\u4e0bCtrl+<code>\uff08\u53cd\u5f15\u53f7\uff09\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165<\/code>python<code>\u6216<\/code>python3`\u8fdb\u5165Python\u4ea4\u4e92\u6a21\u5f0f\u3002\u7136\u540e\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165Python\u4ee3\u7801\u5e76\u770b\u5230\u5373\u65f6\u7684\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u6b65\u9aa4\uff1a<\/strong><\/p>\n<\/p>\n<ol>\n<li>\u6309\u4e0bCtrl+`\uff08\u53cd\u5f15\u53f7\uff09\u6253\u5f00\u7ec8\u7aef\u3002<\/li>\n<li>\u8f93\u5165<code>python<\/code>\u6216<code>python3<\/code>\u8fdb\u5165Python\u4ea4\u4e92\u6a21\u5f0f\u3002<\/li>\n<li>\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165Python\u4ee3\u7801\u3002<\/li>\n<\/ol>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">&gt;&gt;&gt; print(&quot;Hello, World!&quot;)<\/p>\n<p>Hello, World!<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u9002\u5408\u5feb\u901f\u6d4b\u8bd5\u548c\u8c03\u8bd5\u7b80\u5355\u7684Python\u4ee3\u7801\u6bb5\u3002\u4f60\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u9010\u884c\u8f93\u5165\u4ee3\u7801\uff0c\u5e76\u7acb\u5373\u770b\u5230\u8fd0\u884c\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u7f16\u5199Python\u811a\u672c<\/h3>\n<\/p>\n<p><p>\u5728Code Editor\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u6587\u4ef6\uff08\u6269\u5c55\u540d\u4e3a.py\uff09\uff0c\u7136\u540e\u7f16\u5199\u4f60\u7684Python\u4ee3\u7801\u3002\u5b8c\u6210\u540e\uff0c\u6309\u4e0bF5\u952e\u6216\u53f3\u952e\u70b9\u51fb\u6587\u4ef6\u5e76\u9009\u62e9\u201c\u8fd0\u884cPython\u6587\u4ef6\u201d\u9009\u9879\uff0cCode Editor\u4f1a\u5728\u7ec8\u7aef\u4e2d\u8fd0\u884c\u8be5\u6587\u4ef6\u5e76\u663e\u793a\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><p><strong>\u7f16\u5199\u6b65\u9aa4\uff1a<\/strong><\/p>\n<\/p>\n<ol>\n<li>\u5728Code Editor\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u6587\u4ef6\uff08\u6269\u5c55\u540d\u4e3a.py\uff09\u3002<\/li>\n<li>\u7f16\u5199\u4f60\u7684Python\u4ee3\u7801\u3002<\/li>\n<li>\u6309\u4e0bF5\u952e\u6216\u53f3\u952e\u70b9\u51fb\u6587\u4ef6\u5e76\u9009\u62e9\u201c\u8fd0\u884cPython\u6587\u4ef6\u201d\u9009\u9879\u3002<\/li>\n<\/ol>\n<p><p>\u4f8b\u5982\uff0c\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>hello.py<\/code>\u7684\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello, World!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4fdd\u5b58\u6587\u4ef6\u540e\uff0c\u6309\u4e0bF5\u952e\uff0c\u7ec8\u7aef\u4e2d\u5c06\u663e\u793a\uff1a<\/p>\n<\/p>\n<p><pre><code>Hello, World!<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u7f16\u5199\u548c\u8fd0\u884c\u8f83\u957f\u7684Python\u811a\u672c\u3002\u4f60\u53ef\u4ee5\u5728\u4e00\u4e2a\u6587\u4ef6\u4e2d\u7f16\u5199\u5b8c\u6574\u7684\u7a0b\u5e8f\uff0c\u5e76\u5728\u7ec8\u7aef\u4e2d\u4e00\u6b21\u6027\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528Jupyter Notebook\u6269\u5c55<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u4e60\u60ef\u4e8e\u4f7f\u7528Jupyter Notebook\uff0c\u4e5f\u53ef\u4ee5\u5728Code Editor\u4e2d\u5b89\u88c5Jupyter\u6269\u5c55\u3002\u6253\u5f00\u6269\u5c55\u5e02\u573a\uff0c\u641c\u7d22\u201cJupyter\u201d\uff0c\u5b89\u88c5\u7531Microsoft\u63d0\u4f9b\u7684Jupyter\u6269\u5c55\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u53ef\u4ee5\u521b\u5efa\u548c\u7f16\u8f91Jupyter Notebook\u6587\u4ef6\uff08\u6269\u5c55\u540d\u4e3a.ipynb\uff09\uff0c\u5e76\u5728Code Editor\u4e2d\u8fd0\u884c\u6bcf\u4e2a\u5355\u5143\u683c\u7684\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u6b65\u9aa4\uff1a<\/strong><\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00VS Code\u3002<\/li>\n<li>\u6253\u5f00\u6269\u5c55\u5e02\u573a\u3002<\/li>\n<li>\u641c\u7d22\u201cJupyter\u201d\u3002<\/li>\n<li>\u5b89\u88c5\u7531Microsoft\u63d0\u4f9b\u7684Jupyter\u6269\u5c55\u3002<\/li>\n<\/ol>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u53ef\u4ee5\u521b\u5efa\u548c\u7f16\u8f91Jupyter Notebook\u6587\u4ef6\uff08\u6269\u5c55\u540d\u4e3a.ipynb\uff09\uff0c\u5e76\u5728Code Editor\u4e2d\u8fd0\u884c\u6bcf\u4e2a\u5355\u5143\u683c\u7684\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5728Jupyter Notebook\u4e2d<\/p>\n<p>print(&quot;Hello, World!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd0\u884c\u540e\uff0c\u8f93\u51fa\u7ed3\u679c\u5c06\u663e\u793a\u5728\u5355\u5143\u683c\u4e0b\u65b9\u3002<\/p>\n<\/p>\n<p><p>Jupyter Notebook\u6269\u5c55\u975e\u5e38\u9002\u5408\u6570\u636e\u79d1\u5b66\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u9879\u76ee\u3002\u4f60\u53ef\u4ee5\u5728\u5355\u5143\u683c\u4e2d\u7f16\u5199\u548c\u8fd0\u884c\u4ee3\u7801\uff0c\u67e5\u770b\u8f93\u51fa\u7ed3\u679c\uff0c\u5e76\u5728\u540c\u4e00\u4e2a\u6587\u4ef6\u4e2d\u63d2\u5165\u6587\u672c\u3001\u56fe\u7247\u548c\u516c\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u7ed3\u8bba<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u5b89\u88c5Python\u6269\u5c55\u3001\u8bbe\u7f6ePython\u89e3\u91ca\u5668\u3001\u4f7f\u7528Python\u547d\u4ee4\u884c\u3001\u7f16\u5199Python\u811a\u672c\u3001\u4f7f\u7528Jupyter Notebook\u6269\u5c55\u8fd9\u4e94\u79cd\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u5728Code Editor\u4e2d\u76f4\u63a5\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002\u8fd9\u5c06\u5927\u5927\u63d0\u5347\u4f60\u7684\u7f16\u7a0b\u6548\u7387\u548c\u4f53\u9a8c\uff0c\u8ba9\u4f60\u80fd\u591f\u66f4\u52a0\u4e13\u6ce8\u4e8e\u4ee3\u7801\u7f16\u5199\u548c\u8c03\u8bd5\u5de5\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u5e0c\u671b\u8fd9\u4e9b\u65b9\u6cd5\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u795d\u4f60\u5728Python\u7f16\u7a0b\u4e2d\u53d6\u5f97\u66f4\u5927\u7684\u8fdb\u6b65\uff01<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728CE\u73af\u5883\u4e2d\u8fd0\u884cPython\u4ee3\u7801\uff1f<\/strong><br \/>\u5728CE\uff08Code Environment\uff09\u4e2d\u8fd0\u884cPython\u4ee3\u7801\u975e\u5e38\u7b80\u5355\u3002\u7528\u6237\u53ea\u9700\u6253\u5f00CE\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u9009\u62e9Python\u4f5c\u4e3a\u7f16\u7a0b\u8bed\u8a00\uff0c\u4fbf\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165\u548c\u6267\u884c\u4ee3\u7801\u3002\u786e\u4fdd\u60a8\u7684CE\u73af\u5883\u5df2\u7ecf\u914d\u7f6e\u597dPython\u7684\u8fd0\u884c\u73af\u5883\uff0c\u8fd9\u6837\u60a8\u5c31\u53ef\u4ee5\u65e0\u7f1d\u5730\u7f16\u5199\u548c\u8c03\u8bd5\u4ee3\u7801\u3002<\/p>\n<p><strong>CE\u652f\u6301\u54ea\u4e9b\u7248\u672c\u7684Python\uff1f<\/strong><br \/>CE\u901a\u5e38\u652f\u6301\u591a\u4e2a\u7248\u672c\u7684Python\uff0c\u5305\u62ecPython 2.x\u548cPython 3.x\u3002\u5177\u4f53\u652f\u6301\u7684\u7248\u672c\u53ef\u80fd\u4f1a\u6839\u636eCE\u7684\u66f4\u65b0\u800c\u6709\u6240\u53d8\u5316\u3002\u5efa\u8bae\u67e5\u770bCE\u7684\u6587\u6863\u6216\u5b98\u65b9\u7f51\u7ad9\uff0c\u4ee5\u83b7\u53d6\u6700\u65b0\u7684\u652f\u6301\u4fe1\u606f\u548c\u7248\u672c\u517c\u5bb9\u6027\u3002<\/p>\n<p><strong>\u5728CE\u4e2d\u8c03\u8bd5Python\u4ee3\u7801\u6709\u4ec0\u4e48\u6280\u5de7\uff1f<\/strong><br \/>\u5728CE\u4e2d\u8c03\u8bd5Python\u4ee3\u7801\u65f6\uff0c\u53ef\u4ee5\u5229\u7528\u5185\u7f6e\u7684\u8c03\u8bd5\u5de5\u5177\uff0c\u4f8b\u5982\u8bbe\u7f6e\u65ad\u70b9\u3001\u67e5\u770b\u53d8\u91cf\u503c\u548c\u8c03\u7528\u5806\u6808\u3002\u8fd9\u4e9b\u529f\u80fd\u80fd\u591f\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u597d\u5730\u7406\u89e3\u4ee3\u7801\u6267\u884c\u6d41\u7a0b\u3002\u6b64\u5916\uff0c\u4f7f\u7528print\u8bed\u53e5\u8f93\u51fa\u53d8\u91cf\u7684\u503c\u4e5f\u662f\u4e00\u79cd\u7b80\u5355\u6709\u6548\u7684\u8c03\u8bd5\u65b9\u6cd5\uff0c\u80fd\u591f\u5feb\u901f\u5b9a\u4f4d\u95ee\u9898\u6240\u5728\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728CE\uff08Code Editor\uff09\u4e2d\u76f4\u63a5\u6572Python\u4ee3\u7801\u7684\u65b9\u6cd5\u6709\uff1a\u5b89\u88c5Python\u6269\u5c55\u3001\u8bbe\u7f6ePython\u89e3\u91ca\u5668 [&hellip;]","protected":false},"author":3,"featured_media":1085730,"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\/1085726"}],"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=1085726"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1085726\/revisions"}],"predecessor-version":[{"id":1085732,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1085726\/revisions\/1085732"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1085730"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1085726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1085726"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1085726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}