{"id":1079148,"date":"2025-01-08T12:18:11","date_gmt":"2025-01-08T04:18:11","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1079148.html"},"modified":"2025-01-08T12:18:14","modified_gmt":"2025-01-08T04:18:14","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8python%e4%ba%a4%e4%ba%92%e5%bc%8f%e5%86%99%e4%bb%a3%e7%a0%81-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1079148.html","title":{"rendered":"\u5982\u4f55\u5728python\u4ea4\u4e92\u5f0f\u5199\u4ee3\u7801"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24182330\/bdf465f6-5ef6-4c2c-85fa-aac9b8b01224.webp\" alt=\"\u5982\u4f55\u5728python\u4ea4\u4e92\u5f0f\u5199\u4ee3\u7801\" \/><\/p>\n<p><p> <strong>\u5728Python\u4ea4\u4e92\u5f0f\u5199\u4ee3\u7801\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528Python\u89e3\u91ca\u5668\u3001Jupyter Notebook\u3001IPython\u4ee5\u53ca\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u7b49\u3002<\/strong> \u5176\u4e2d\uff0c<strong>Jupyter Notebook<\/strong>\u662f\u4e00\u79cd\u975e\u5e38\u6d41\u884c\u7684\u5de5\u5177\uff0c\u56e0\u4e3a\u5b83\u4e0d\u4ec5\u652f\u6301\u4ea4\u4e92\u5f0f\u7f16\u5199\u4ee3\u7801\uff0c\u8fd8\u53ef\u4ee5\u5305\u542b\u6587\u672c\u3001\u56fe\u8868\u548c\u5176\u4ed6\u591a\u5a92\u4f53\u5185\u5bb9\u3002<strong>Python\u89e3\u91ca\u5668<\/strong>\u548c<strong>IPython<\/strong>\u4e5f\u975e\u5e38\u65b9\u4fbf\u7528\u4e8e\u5feb\u901f\u6d4b\u8bd5\u548c\u8c03\u8bd5\u4ee3\u7801\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u6765\u4ea4\u4e92\u5f0f\u5730\u5199Python\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528Python\u89e3\u91ca\u5668<\/p>\n<\/p>\n<p><p>Python\u89e3\u91ca\u5668\u662fPython\u81ea\u5e26\u7684\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u73af\u5883\u3002\u4f60\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>python<\/code>\u6216<code>python3<\/code>\uff08\u53d6\u51b3\u4e8e\u4f60\u7684Python\u7248\u672c\uff09\u6765\u542f\u52a8\u89e3\u91ca\u5668\u3002\u5728\u89e3\u91ca\u5668\u4e2d\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165Python\u4ee3\u7801\u5e76\u7acb\u5373\u770b\u5230\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><h3>\u542f\u52a8Python\u89e3\u91ca\u5668<\/h3>\n<\/p>\n<p><p>\u5728\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u4e0b\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6216<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f60\u5c06\u770b\u5230\u7c7b\u4f3c\u4ee5\u4e0b\u7684\u63d0\u793a\u7b26\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">Python 3.x.x (default, Jul  9 2021, 00:00:00)<\/p>\n<p>[GCC 8.4.0] on linux<\/p>\n<p>Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<\/p>\n<p>&gt;&gt;&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6b64\u65f6\uff0c\u4f60\u5df2\u7ecf\u8fdb\u5165\u4e86Python\u89e3\u91ca\u5668\uff0c\u53ef\u4ee5\u5f00\u59cb\u8f93\u5165Python\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528Python\u89e3\u91ca\u5668\u7f16\u5199\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>\u5728\u63d0\u793a\u7b26\u4e0b\u8f93\u5165Python\u4ee3\u7801\u5e76\u6309\u56de\u8f66\u952e\uff0c\u89e3\u91ca\u5668\u4f1a\u7acb\u5373\u6267\u884c\u4ee3\u7801\u5e76\u663e\u793a\u7ed3\u679c\u3002\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>&gt;&gt;&gt; x = 5<\/p>\n<p>&gt;&gt;&gt; y = 10<\/p>\n<p>&gt;&gt;&gt; z = x + y<\/p>\n<p>&gt;&gt;&gt; z<\/p>\n<p>15<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>Python\u89e3\u91ca\u5668\u7684\u4f18\u70b9\u662f\u7b80\u5355\u3001\u5feb\u901f\uff0c\u975e\u5e38\u9002\u5408\u7528\u4e8e\u6d4b\u8bd5\u548c\u8c03\u8bd5\u5c0f\u6bb5\u4ee3\u7801\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528IPython<\/p>\n<\/p>\n<p><p>IPython\u662f\u4e00\u4e2a\u589e\u5f3a\u7248\u7684Python\u89e3\u91ca\u5668\uff0c\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u529f\u80fd\uff0c\u5982\u81ea\u52a8\u8865\u5168\u3001\u8bed\u6cd5\u9ad8\u4eae\u3001\u9b54\u6cd5\u547d\u4ee4\u7b49\u3002IPython\u53ef\u4ee5\u901a\u8fc7\u5b89\u88c5<code>ipython<\/code>\u5305\u6765\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u5b89\u88c5IPython<\/h3>\n<\/p>\n<p><p>\u5728\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u4e0b\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5IPython\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install ipython<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u542f\u52a8IPython<\/h3>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8IPython\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">ipython<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f60\u5c06\u770b\u5230\u7c7b\u4f3c\u4ee5\u4e0b\u7684\u63d0\u793a\u7b26\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">Python 3.x.x (default, Jul  9 2021, 00:00:00)<\/p>\n<p>Type &#39;copyright&#39;, &#39;credits&#39; or &#39;license&#39; for more information<\/p>\n<p>IPython 7.x.x -- An enhanced Interactive Python.<\/p>\n<p>Type &#39;?&#39; for help.<\/p>\n<p>In [1]:<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4f7f\u7528IPython\u7f16\u5199\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>\u5728\u63d0\u793a\u7b26\u4e0b\u8f93\u5165Python\u4ee3\u7801\u5e76\u6309\u56de\u8f66\u952e\uff0cIPython\u4f1a\u7acb\u5373\u6267\u884c\u4ee3\u7801\u5e76\u663e\u793a\u7ed3\u679c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">In [1]: print(&quot;Hello, IPython!&quot;)<\/p>\n<p>Hello, IPython!<\/p>\n<p>In [2]: a = 10<\/p>\n<p>In [3]: b = 20<\/p>\n<p>In [4]: c = a * b<\/p>\n<p>In [5]: c<\/p>\n<p>Out[5]: 200<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>IPython\u7684\u4f18\u70b9\u662f\u529f\u80fd\u5f3a\u5927\uff0c\u63d0\u4f9b\u4e86\u8bb8\u591a\u4fbf\u5229\u7684\u7279\u6027\uff0c\u9002\u5408\u7528\u4e8e\u590d\u6742\u7684\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528Jupyter Notebook<\/p>\n<\/p>\n<p><p>Jupyter Notebook\u662f\u4e00\u79cd\u57fa\u4e8eWeb\u7684\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u73af\u5883\uff0c\u652f\u6301Python\u53ca\u5176\u4ed6\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u3002\u5b83\u5141\u8bb8\u4f60\u5728\u4e00\u4e2a\u6587\u6863\u4e2d\u5305\u542b\u4ee3\u7801\u3001\u6587\u672c\u3001\u56fe\u8868\u548c\u5176\u4ed6\u591a\u5a92\u4f53\u5185\u5bb9\uff0c\u975e\u5e38\u9002\u5408\u7528\u4e8e\u6570\u636e\u5206\u6790\u3001\u6570\u636e\u53ef\u89c6\u5316\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u7b49\u9886\u57df\u3002<\/p>\n<\/p>\n<p><h3>\u5b89\u88c5Jupyter Notebook<\/h3>\n<\/p>\n<p><p>\u5728\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u4e0b\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5Jupyter Notebook\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install notebook<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u542f\u52a8Jupyter Notebook<\/h3>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8Jupyter Notebook\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">jupyter notebook<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6d4f\u89c8\u5668\u5c06\u81ea\u52a8\u6253\u5f00Jupyter Notebook\u7684\u4e3b\u9875\uff0c\u4f60\u53ef\u4ee5\u5728\u8fd9\u91cc\u521b\u5efa\u548c\u7ba1\u7406\u7b14\u8bb0\u672c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528Jupyter Notebook\u7f16\u5199\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>\u5728Jupyter Notebook\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u7b14\u8bb0\u672c\u6587\u4ef6\u3002\u5728\u7b14\u8bb0\u672c\u4e2d\uff0c\u4f60\u53ef\u4ee5\u5728\u5355\u5143\u683c\u4e2d\u8f93\u5165Python\u4ee3\u7801\u5e76\u6267\u884c\uff0c\u7ed3\u679c\u5c06\u663e\u793a\u5728\u5355\u5143\u683c\u4e0b\u65b9\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5728\u5355\u5143\u683c\u4e2d\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\u5e76\u6267\u884c<\/p>\n<p>print(&quot;Hello, Jupyter Notebook!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6267\u884c\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">Hello, Jupyter Notebook!<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>Jupyter Notebook\u7684\u4f18\u70b9\u662f\u529f\u80fd\u4e30\u5bcc\uff0c\u652f\u6301\u591a\u79cd\u683c\u5f0f\u548c\u5de5\u5177\uff0c\u9002\u5408\u7528\u4e8e\u7efc\u5408\u6027\u9879\u76ee\u548c\u6570\u636e\u5206\u6790\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09<\/p>\n<\/p>\n<p><p>\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u5982PyCharm\u3001VS Code\u3001Spyder\u7b49\uff0c\u4e5f\u63d0\u4f9b\u4e86\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u7684\u529f\u80fd\u3002\u5b83\u4eec\u901a\u5e38\u96c6\u6210\u4e86\u8c03\u8bd5\u5668\u3001\u4ee3\u7801\u8865\u5168\u3001\u7248\u672c\u63a7\u5236\u7b49\u591a\u79cd\u5de5\u5177\uff0c\u9002\u5408\u7528\u4e8e\u5927\u578b\u9879\u76ee\u7684\u5f00\u53d1\u548c\u7ef4\u62a4\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528VS Code\u4ea4\u4e92\u5f0f\u7f16\u5199\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>VS Code\u662f\u4e00\u6b3e\u6d41\u884c\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u548c\u6269\u5c55\u63d2\u4ef6\u3002\u901a\u8fc7\u5b89\u88c5Python\u6269\u5c55\u63d2\u4ef6\uff0c\u4f60\u53ef\u4ee5\u5728VS Code\u4e2d\u4f7f\u7528\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h4>\u5b89\u88c5VS Code\u548cPython\u6269\u5c55\u63d2\u4ef6<\/h4>\n<\/p>\n<ol>\n<li>\u4e0b\u8f7d\u5e76\u5b89\u88c5VS Code\uff1a<a href=\"https:\/\/code.visualstudio.com\/\">https:\/\/code.visualstudio.com\/<\/a><\/li>\n<li>\u5728VS Code\u4e2d\u6253\u5f00\u6269\u5c55\u5546\u5e97\uff0c\u641c\u7d22\u5e76\u5b89\u88c5<code>Python<\/code>\u6269\u5c55\u63d2\u4ef6\u3002<\/li>\n<\/ol>\n<p><h4>\u4f7f\u7528VS Code\u4ea4\u4e92\u5f0f\u7f16\u5199\u4ee3\u7801<\/h4>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u4e00\u4e2aPython\u6587\u4ef6\u6216\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u6587\u4ef6\u3002<\/li>\n<li>\u5728\u6587\u4ef6\u4e2d\u8f93\u5165Python\u4ee3\u7801\u3002\u4f8b\u5982\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">print(&quot;Hello, VS Code!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u5728\u4ee3\u7801\u4e2d\u9009\u62e9\u9700\u8981\u6267\u884c\u7684\u90e8\u5206\uff0c\u53f3\u952e\u9009\u62e9\u201cRun Selection\/Line in Python Terminal\u201d\u6216\u6309\u4e0b\u5feb\u6377\u952e <code>Shift+Enter<\/code>\uff0c\u4ee3\u7801\u5c06\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u5e76\u663e\u793a\u7ed3\u679c\u3002<\/li>\n<\/ol>\n<p><p><strong>VS Code\u7684\u4f18\u70b9\u662f\u8f7b\u91cf\u3001\u7075\u6d3b\uff0c\u652f\u6301\u591a\u79cd\u8bed\u8a00\u548c\u5de5\u5177\uff0c\u9002\u5408\u7528\u4e8e\u5404\u79cd\u89c4\u6a21\u7684\u9879\u76ee\u5f00\u53d1\u3002<\/strong><\/p>\n<\/p>\n<p><h3>\u4f7f\u7528PyCharm\u4ea4\u4e92\u5f0f\u7f16\u5199\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>PyCharm\u662fJetBr<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ns\u516c\u53f8\u5f00\u53d1\u7684\u4e00\u6b3e\u4e13\u4e1a\u7684Python\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u548c\u5de5\u5177\uff0c\u9002\u5408\u7528\u4e8e\u5927\u578b\u9879\u76ee\u7684\u5f00\u53d1\u548c\u7ef4\u62a4\u3002<\/p>\n<\/p>\n<p><h4>\u5b89\u88c5PyCharm<\/h4>\n<\/p>\n<ol>\n<li>\u4e0b\u8f7d\u5e76\u5b89\u88c5PyCharm\uff1a<a href=\"https:\/\/www.jetbrains.com\/pycharm\/\">https:\/\/www.jetbrains.com\/pycharm\/<\/a><\/li>\n<li>\u542f\u52a8PyCharm\u5e76\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u9879\u76ee\u3002<\/li>\n<\/ol>\n<p><h4>\u4f7f\u7528PyCharm\u4ea4\u4e92\u5f0f\u7f16\u5199\u4ee3\u7801<\/h4>\n<\/p>\n<ol>\n<li>\u5728\u9879\u76ee\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u6587\u4ef6\u3002<\/li>\n<li>\u5728\u6587\u4ef6\u4e2d\u8f93\u5165Python\u4ee3\u7801\u3002\u4f8b\u5982\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">print(&quot;Hello, PyCharm!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u53f3\u952e\u70b9\u51fb\u4ee3\u7801\u9009\u62e9\u201cRun &#39;\u6587\u4ef6\u540d&#39;\u201d\u6216\u70b9\u51fb\u5de5\u5177\u680f\u4e2d\u7684\u8fd0\u884c\u6309\u94ae\uff0c\u4ee3\u7801\u5c06\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u5e76\u663e\u793a\u7ed3\u679c\u3002<\/li>\n<\/ol>\n<p><p><strong>PyCharm\u7684\u4f18\u70b9\u662f\u529f\u80fd\u5f3a\u5927\uff0c\u63d0\u4f9b\u4e86\u591a\u79cd\u4e13\u4e1a\u5de5\u5177\u548c\u63d2\u4ef6\uff0c\u9002\u5408\u7528\u4e8e\u590d\u6742\u548c\u5927\u578b\u9879\u76ee\u7684\u5f00\u53d1\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u4ea4\u4e92\u5f0f\u5199\u4ee3\u7801\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528Python\u89e3\u91ca\u5668\u3001IPython\u3001Jupyter Notebook\u4ee5\u53ca\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u7b49\u3002<strong>Python\u89e3\u91ca\u5668\u548cIPython\u9002\u5408\u7528\u4e8e\u5feb\u901f\u6d4b\u8bd5\u548c\u8c03\u8bd5\u5c0f\u6bb5\u4ee3\u7801\uff0cJupyter Notebook\u9002\u5408\u7528\u4e8e\u6570\u636e\u5206\u6790\u548c\u53ef\u89c6\u5316\uff0c\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u5982VS Code\u548cPyCharm\u9002\u5408\u7528\u4e8e\u5927\u578b\u9879\u76ee\u7684\u5f00\u53d1\u548c\u7ef4\u62a4\u3002<\/strong> \u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u53ef\u4ee5\u63d0\u9ad8\u7f16\u7a0b\u6548\u7387\u548c\u5f00\u53d1\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u7684\u6700\u4f73\u5de5\u5177\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u5de5\u5177\u662fPython\u89e3\u91ca\u5668\u548cJupyter Notebook\u3002Python\u89e3\u91ca\u5668\u53ef\u4ee5\u76f4\u63a5\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u4ee3\u7801\u5e76\u7acb\u5373\u6267\u884c\uff0c\u9002\u5408\u5feb\u901f\u6d4b\u8bd5\u548c\u8c03\u8bd5\u3002Jupyter Notebook\u5219\u63d0\u4f9b\u4e86\u4e00\u4e2a\u66f4\u4e3a\u53cb\u597d\u7684\u754c\u9762\uff0c\u53ef\u4ee5\u7ed3\u5408\u4ee3\u7801\u3001\u6587\u672c\u548c\u56fe\u50cf\uff0c\u9002\u5408\u8fdb\u884c\u6570\u636e\u5206\u6790\u548c\u53ef\u89c6\u5316\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528\u4ea4\u4e92\u5f0f\u6a21\u5f0f\u8fdb\u884c\u8c03\u8bd5\uff1f<\/strong><br \/>\u4f7f\u7528Python\u7684\u4ea4\u4e92\u5f0f\u6a21\u5f0f\u8fdb\u884c\u8c03\u8bd5\u975e\u5e38\u76f4\u89c2\u3002\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>python<\/code>\u542f\u52a8\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\uff0c\u7136\u540e\u9010\u884c\u8f93\u5165\u4ee3\u7801\uff0c\u89c2\u5bdf\u6bcf\u4e2a\u8868\u8fbe\u5f0f\u7684\u8f93\u51fa\u3002\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u8c03\u8bd5\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pdb<\/code>\u6a21\u5757\uff0c\u5b83\u63d0\u4f9b\u4e86\u66f4\u5f3a\u5927\u7684\u8c03\u8bd5\u529f\u80fd\uff0c\u5982\u8bbe\u7f6e\u65ad\u70b9\u548c\u5355\u6b65\u6267\u884c\u4ee3\u7801\u3002<\/p>\n<p><strong>\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u5bf9\u5b66\u4e60Python\u6709\u54ea\u4e9b\u5e2e\u52a9\uff1f<\/strong><br \/>\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u4e3a\u521d\u5b66\u8005\u63d0\u4f9b\u4e86\u5373\u65f6\u53cd\u9988\uff0c\u80fd\u591f\u66f4\u5feb\u5730\u7406\u89e3\u8bed\u8a00\u7684\u8bed\u6cd5\u548c\u529f\u80fd\u3002\u901a\u8fc7\u5b9e\u65f6\u8fd0\u884c\u4ee3\u7801\uff0c\u5b66\u4e60\u8005\u53ef\u4ee5\u7acb\u5373\u770b\u5230\u7ed3\u679c\uff0c\u8fd9\u79cd\u52a8\u6001\u53cd\u9988\u6709\u52a9\u4e8e\u52a0\u6df1\u5bf9\u7f16\u7a0b\u6982\u5ff5\u7684\u7406\u89e3\u3002\u6b64\u5916\uff0c\u4ea4\u4e92\u5f0f\u73af\u5883\u4e2d\u53ef\u4ee5\u8f7b\u677e\u5730\u5c1d\u8bd5\u4e0d\u540c\u7684\u4ee3\u7801\u7247\u6bb5\uff0c\u63d0\u5347\u5b66\u4e60\u7684\u8da3\u5473\u6027\u548c\u6709\u6548\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4ea4\u4e92\u5f0f\u5199\u4ee3\u7801\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528Python\u89e3\u91ca\u5668\u3001Jupyter Notebook\u3001IPyt [&hellip;]","protected":false},"author":3,"featured_media":1079155,"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\/1079148"}],"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=1079148"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1079148\/revisions"}],"predecessor-version":[{"id":1079158,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1079148\/revisions\/1079158"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1079155"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1079148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1079148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1079148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}