{"id":1023884,"date":"2024-12-30T14:08:54","date_gmt":"2024-12-30T06:08:54","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1023884.html"},"modified":"2024-12-30T14:08:56","modified_gmt":"2024-12-30T06:08:56","slug":"%e5%a6%82%e4%bd%95%e8%b0%83%e5%87%bapython%e7%bb%93%e6%9e%9c%e7%aa%97%e5%8f%a3-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1023884.html","title":{"rendered":"\u5982\u4f55\u8c03\u51fapython\u7ed3\u679c\u7a97\u53e3"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/d9785d12-ef42-445a-85a7-48ac1dc731ba.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"\u5982\u4f55\u8c03\u51fapython\u7ed3\u679c\u7a97\u53e3\" \/><\/p>\n<p><p> <strong>\u8c03\u51faPython\u7ed3\u679c\u7a97\u53e3<\/strong>\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528<strong>IDLE\u3001Jupyter Notebook\u3001\u547d\u4ee4\u884c\u7ec8\u7aef\u3001\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09<\/strong>\u7b49\u3002<\/p>\n<\/p>\n<p><p><strong>IDLE\u3001Jupyter Notebook\u3001\u547d\u4ee4\u884c\u7ec8\u7aef\u3001\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09<\/strong>\uff0c\u5176\u4e2d<strong>Jupyter Notebook<\/strong>\u662f\u4e00\u79cd\u4e92\u52a8\u6027\u5f3a\uff0c\u65b9\u4fbf\u8c03\u8bd5\u548c\u5c55\u793a\u7ed3\u679c\u7684\u5de5\u5177\u3002<\/p>\n<\/p>\n<hr>\n<p><h3>\u4e00\u3001IDLE<\/h3>\n<\/p>\n<p><p>IDLE\uff08Integrated Development and Learning Environment\uff09\u662fPython\u9ed8\u8ba4\u5b89\u88c5\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\u3002\u901a\u8fc7IDLE\uff0c\u4f60\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u8fd0\u884cPython\u4ee3\u7801\u5e76\u67e5\u770b\u7ed3\u679c\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528IDLE\u8c03\u51faPython\u7ed3\u679c\u7a97\u53e3\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5\u548c\u6253\u5f00IDLE<\/h4>\n<\/p>\n<p><p>Python\u81ea\u5e26\u7684\u5b89\u88c5\u5305\u4e2d\u901a\u5e38\u5305\u542bIDLE\u3002\u5982\u679c\u4f60\u5df2\u7ecf\u5b89\u88c5\u4e86Python\uff0cIDLE\u4e5f\u4f1a\u81ea\u52a8\u5b89\u88c5\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u6253\u5f00IDLE\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u70b9\u51fb\u201c\u5f00\u59cb\u201d\u83dc\u5355\uff0c\u8f93\u5165\u201cIDLE\u201d\uff0c\u5e76\u9009\u62e9\u201cIDLE (Python x.x.x)\u201d\u3002<\/li>\n<li>\u5728MacOS\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u7ec8\u7aef\u8f93\u5165<code>idle<\/code>\u547d\u4ee4\u6765\u542f\u52a8IDLE\u3002<\/li>\n<\/ul>\n<p><h4>2. \u7f16\u5199\u548c\u8fd0\u884c\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u6253\u5f00IDLE\u540e\uff0c\u4f60\u4f1a\u770b\u5230\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u7684Python Shell\u7a97\u53e3\u3002\u5728\u8fd9\u91cc\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165Python\u4ee3\u7801\u5e76\u7acb\u5373\u67e5\u770b\u7ed3\u679c\u3002\u4f8b\u5982\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>\u6309\u4e0b\u56de\u8f66\u952e\u540e\uff0cIDLE\u4f1a\u7acb\u5373\u663e\u793a\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><h4>3. \u4f7f\u7528\u811a\u672c\u6a21\u5f0f<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u5e0c\u671b\u8fd0\u884c\u4e00\u4e2a\u5305\u542b\u591a\u884c\u4ee3\u7801\u7684Python\u811a\u672c\uff0c\u53ef\u4ee5\u5728IDLE\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6587\u4ef6\u3002\u5728IDLE\u7684\u83dc\u5355\u680f\u4e2d\uff0c\u9009\u62e9\u201cFile\u201d -&gt; \u201cNew File\u201d\uff0c\u7136\u540e\u5728\u65b0\u7a97\u53e3\u4e2d\u7f16\u5199\u4f60\u7684Python\u4ee3\u7801\u3002\u7f16\u5199\u5b8c\u6210\u540e\uff0c\u4fdd\u5b58\u6587\u4ef6\uff08\u901a\u5e38\u4ee5<code>.py<\/code>\u4e3a\u6269\u5c55\u540d\uff09\uff0c\u7136\u540e\u9009\u62e9\u201cRun\u201d -&gt; \u201cRun Module\u201d\u6216\u6309\u4e0b<code>F5<\/code>\u952e\u6765\u8fd0\u884c\u811a\u672c\u3002\u7ed3\u679c\u4f1a\u663e\u793a\u5728IDLE\u7684Python Shell\u7a97\u53e3\u4e2d\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001Jupyter Notebook<\/h3>\n<\/p>\n<p><p>Jupyter Notebook\u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u4ea4\u4e92\u5f0f\u5f00\u53d1\u73af\u5883\uff0c\u7279\u522b\u9002\u5408\u7528\u4e8e\u6570\u636e\u5206\u6790\u3001<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u548c\u6559\u5b66\u3002\u5b83\u5141\u8bb8\u4f60\u5728\u5355\u4e2a\u6587\u6863\u4e2d\u7f16\u5199\u3001\u8fd0\u884c\u4ee3\u7801\uff0c\u5e76\u67e5\u770b\u7ed3\u679c\u3002\u4f7f\u7528Jupyter Notebook\u8c03\u51faPython\u7ed3\u679c\u7a97\u53e3\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5Jupyter Notebook<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u8fd8\u6ca1\u6709\u5b89\u88c5Jupyter Notebook\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u901a\u8fc7<code>pip<\/code>\u6765\u5b89\u88c5\u5b83\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install notebook<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\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>\u8fd9\u5c06\u4f1a\u5728\u4f60\u7684\u9ed8\u8ba4\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00Jupyter Notebook\u7684\u4e3b\u9875\u3002<\/p>\n<\/p>\n<p><h4>2. \u521b\u5efa\u548c\u8fd0\u884cNotebook<\/h4>\n<\/p>\n<p><p>\u5728Jupyter Notebook\u4e3b\u9875\u4e2d\uff0c\u70b9\u51fb\u201cNew\u201d\u6309\u94ae\uff0c\u5e76\u9009\u62e9\u201cPython 3\u201d\u6765\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Notebook\u3002\u5728\u65b0\u521b\u5efa\u7684Notebook\u4e2d\uff0c\u4f60\u53ef\u4ee5\u7f16\u5199Python\u4ee3\u7801\u5e76\u8fd0\u884c\u3002\u4f8b\u5982\uff0c\u5728\u4e00\u4e2a\u5355\u5143\u683c\u4e2d\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello, Jupyter!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6309\u4e0b<code>Shift + Enter<\/code>\u952e\u6765\u8fd0\u884c\u4ee3\u7801\uff0c\u7ed3\u679c\u4f1a\u7acb\u5373\u663e\u793a\u5728\u5355\u5143\u683c\u4e0b\u65b9\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u547d\u4ee4\u884c\u7ec8\u7aef<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528\u547d\u4ee4\u884c\u7ec8\u7aef\u662f\u8fd0\u884cPython\u4ee3\u7801\u7684\u53e6\u4e00\u79cd\u65b9\u5f0f\u3002\u65e0\u8bba\u4f60\u4f7f\u7528\u7684\u662fWindows\u3001MacOS\u8fd8\u662fLinux\uff0c\u90fd\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u7ec8\u7aef\u6765\u8fd0\u884cPython\u4ee3\u7801\u5e76\u67e5\u770b\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><h4>1. \u6253\u5f00\u547d\u4ee4\u884c\u7ec8\u7aef<\/h4>\n<\/p>\n<p><p>\u6839\u636e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u6253\u5f00\u76f8\u5e94\u7684\u547d\u4ee4\u884c\u7ec8\u7aef\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5728Windows\u4e2d\uff0c\u6309\u4e0b<code>Win + R<\/code>\u952e\uff0c\u8f93\u5165<code>cmd<\/code>\uff0c\u5e76\u6309\u4e0b\u56de\u8f66\u952e\u3002<\/li>\n<li>\u5728MacOS\u4e2d\uff0c\u6253\u5f00\u201c\u7ec8\u7aef\u201d\u5e94\u7528\u3002<\/li>\n<li>\u5728Linux\u4e2d\uff0c\u6253\u5f00\u4f60\u7684\u7ec8\u7aef\u5e94\u7528\u3002<\/li>\n<\/ul>\n<p><h4>2. \u8fd0\u884cPython\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165<code>python<\/code>\u6216<code>python3<\/code>\u547d\u4ee4\u6765\u542f\u52a8Python\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\u3002\u7136\u540e\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165Python\u4ee3\u7801\u5e76\u67e5\u770b\u7ed3\u679c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello, Terminal!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6309\u4e0b\u56de\u8f66\u952e\u540e\uff0c\u7ec8\u7aef\u4f1a\u7acb\u5373\u663e\u793a\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><h4>3. \u8fd0\u884cPython\u811a\u672c<\/h4>\n<\/p>\n<p><p>\u4f60\u8fd8\u53ef\u4ee5\u5728\u7ec8\u7aef\u4e2d\u8fd0\u884c\u5305\u542b\u591a\u884c\u4ee3\u7801\u7684Python\u811a\u672c\u3002\u9996\u5148\uff0c\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\u7f16\u5199\u4f60\u7684Python\u4ee3\u7801\uff0c\u5e76\u4fdd\u5b58\u4e3a<code>.py<\/code>\u6587\u4ef6\u3002\u7136\u540e\uff0c\u5728\u7ec8\u7aef\u4e2d\u5bfc\u822a\u5230\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\uff0c\u5e76\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c<code>script.py<\/code>\u662f\u4f60\u7684Python\u811a\u672c\u6587\u4ef6\u540d\u3002\u8fd0\u884c\u540e\uff0c\u7ed3\u679c\u4f1a\u663e\u793a\u5728\u7ec8\u7aef\u4e2d\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09<\/h3>\n<\/p>\n<p><p>\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u662f\u5f00\u53d1\u4eba\u5458\u7528\u6765\u7f16\u5199\u3001\u8c03\u8bd5\u548c\u8fd0\u884c\u4ee3\u7801\u7684\u5de5\u5177\u3002\u5e38\u7528\u7684Python IDE\u5305\u62ecPyCharm\u3001Visual Studio Code\u3001Spyder\u7b49\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528PyCharm\u8c03\u51faPython\u7ed3\u679c\u7a97\u53e3\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5\u548c\u6253\u5f00PyCharm<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4eceJetBrains\u5b98\u7f51\uff08<a href=\"https:\/\/www.jetbrains.com\/pycharm\/%EF%BC%89%E4%B8%8B%E8%BD%BD%E5%B9%B6%E5%AE%89%E8%A3%85PyCharm%E3%80%82%E5%AE%89%E8%A3%85%E5%AE%8C%E6%88%90%E5%90%8E%EF%BC%8C%E6%89%93%E5%BC%80PyCharm%E3%80%82\">https:\/\/www.jetbr<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ns.com\/pycharm\/\uff09\u4e0b\u8f7d\u5e76\u5b89\u88c5PyCharm\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00PyCharm\u3002<\/a><\/p>\n<\/p>\n<p><h4>2. \u521b\u5efa\u65b0\u9879\u76ee<\/h4>\n<\/p>\n<p><p>\u5728PyCharm\u7684\u6b22\u8fce\u754c\u9762\u4e2d\uff0c\u9009\u62e9\u201cCreate New Project\u201d\u6765\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u9879\u76ee\u3002\u8bbe\u7f6e\u9879\u76ee\u540d\u79f0\u548c\u8def\u5f84\uff0c\u7136\u540e\u70b9\u51fb\u201cCreate\u201d\u6309\u94ae\u3002<\/p>\n<\/p>\n<p><h4>3. \u7f16\u5199\u548c\u8fd0\u884c\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u5728\u9879\u76ee\u76ee\u5f55\u4e2d\uff0c\u53f3\u952e\u70b9\u51fb\u201csrc\u201d\u6587\u4ef6\u5939\uff0c\u9009\u62e9\u201cNew\u201d -&gt; \u201cPython File\u201d\u6765\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u6587\u4ef6\u3002\u5728\u65b0\u521b\u5efa\u7684\u6587\u4ef6\u4e2d\u7f16\u5199\u4f60\u7684Python\u4ee3\u7801\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello, PyCharm!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u53f3\u952e\u70b9\u51fb\u4ee3\u7801\u7f16\u8f91\u533a\u57df\uff0c\u9009\u62e9\u201cRun &#39;filename&#39;\u201d\u6765\u8fd0\u884c\u811a\u672c\u3002\u7ed3\u679c\u4f1a\u663e\u793a\u5728PyCharm\u7684\u201cRun\u201d\u7a97\u53e3\u4e2d\u3002<\/p>\n<\/p>\n<p><h4>4. \u8c03\u8bd5\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>PyCharm\u8fd8\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u8c03\u8bd5\u5de5\u5177\u3002\u4f60\u53ef\u4ee5\u5728\u4ee3\u7801\u884c\u53f7\u5904\u70b9\u51fb\u4ee5\u8bbe\u7f6e\u65ad\u70b9\uff0c\u7136\u540e\u70b9\u51fb\u201cDebug\u201d\u6309\u94ae\u6765\u542f\u52a8\u8c03\u8bd5\u6a21\u5f0f\u3002\u8c03\u8bd5\u8fc7\u7a0b\u4e2d\uff0c\u4f60\u53ef\u4ee5\u9010\u884c\u6267\u884c\u4ee3\u7801\uff0c\u67e5\u770b\u53d8\u91cf\u503c\u548c\u7a0b\u5e8f\u72b6\u6001\uff0c\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u548c\u8c03\u8bd5\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p><strong>\u8c03\u51faPython\u7ed3\u679c\u7a97\u53e3<\/strong>\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec<strong>IDLE\u3001Jupyter Notebook\u3001\u547d\u4ee4\u884c\u7ec8\u7aef\u3001\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09<\/strong>\u7b49\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u72ec\u7279\u7684\u4f18\u52bf\uff0c\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u573a\u666f\u548c\u9700\u6c42\u3002\u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4\uff0cIDLE\u548cJupyter Notebook\u662f\u975e\u5e38\u53cb\u597d\u7684\u9009\u62e9\uff0c\u800c\u5bf9\u4e8e\u6709\u7ecf\u9a8c\u7684\u5f00\u53d1\u8005\u6765\u8bf4\uff0c\u4f7f\u7528\u547d\u4ee4\u884c\u7ec8\u7aef\u548cIDE\uff08\u5982PyCharm\uff09\u5219\u80fd\u63d0\u4f9b\u66f4\u591a\u7684\u529f\u80fd\u548c\u7075\u6d3b\u6027\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u5728\u9009\u62e9\u548c\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u65f6\u6709\u6240\u5e2e\u52a9\uff0c\u5e76\u80fd\u66f4\u597d\u5730\u8c03\u51faPython\u7ed3\u679c\u7a97\u53e3\uff0c\u63d0\u5347\u4f60\u7684\u7f16\u7a0b\u6548\u7387\u548c\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u6253\u5f00\u7ed3\u679c\u7a97\u53e3\u4ee5\u67e5\u770b\u8f93\u51fa\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u67e5\u770b\u7a0b\u5e8f\u7684\u8f93\u51fa\u7ed3\u679c\u3002\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u5728\u4ee3\u7801\u4e2d\u4f7f\u7528<code>print()<\/code>\u51fd\u6570\uff0c\u8f93\u51fa\u7ed3\u679c\u4f1a\u663e\u793a\u5728\u7ec8\u7aef\u6216\u547d\u4ee4\u884c\u7a97\u53e3\u4e2d\u3002\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\uff0c\u5982PyCharm\u6216VSCode\uff0c\u7ed3\u679c\u7a97\u53e3\u901a\u5e38\u4f4d\u4e8eIDE\u7684\u5e95\u90e8\u6216\u4fa7\u8fb9\u680f\u4e2d\u3002\u4f60\u4e5f\u53ef\u4ee5\u5728Jupyter Notebook\u4e2d\u76f4\u63a5\u5728\u5355\u5143\u683c\u4e0b\u65b9\u770b\u5230\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u5728Python\u4e2d\u81ea\u5b9a\u4e49\u7ed3\u679c\u7a97\u53e3\u7684\u663e\u793a\u65b9\u5f0f\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u5141\u8bb8\u7528\u6237\u901a\u8fc7\u591a\u79cd\u56fe\u5f62\u754c\u9762\u5e93\u81ea\u5b9a\u4e49\u7ed3\u679c\u7a97\u53e3\u3002\u4f8b\u5982\uff0c\u4f7f\u7528Tkinter\u3001PyQt\u6216wxPython\u7b49\u5e93\uff0c\u53ef\u4ee5\u521b\u5efa\u81ea\u5b9a\u4e49\u7684\u7a97\u53e3\u6765\u663e\u793a\u7a0b\u5e8f\u7684\u8f93\u51fa\u7ed3\u679c\u3002\u8fd9\u4e9b\u5e93\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u63a7\u4ef6\u548c\u5e03\u5c40\u9009\u9879\uff0c\u53ef\u4ee5\u8ba9\u4f60\u8bbe\u8ba1\u51fa\u66f4\u7b26\u5408\u9700\u6c42\u7684\u7528\u6237\u754c\u9762\u3002<\/p>\n<p><strong>\u5728\u4f7f\u7528Jupyter Notebook\u65f6\uff0c\u5982\u4f55\u66f4\u597d\u5730\u7ba1\u7406\u8f93\u51fa\u7ed3\u679c\u7684\u663e\u793a\uff1f<\/strong><br \/>\u5728Jupyter Notebook\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528Markdown\u5355\u5143\u683c\u548c\u4ee3\u7801\u5355\u5143\u683c\u7ed3\u5408\u7684\u65b9\u5f0f\uff0c\u6765\u66f4\u597d\u5730\u7ec4\u7ec7\u548c\u7ba1\u7406\u8f93\u51fa\u7ed3\u679c\u3002\u901a\u8fc7Markdown\u5355\u5143\u683c\uff0c\u53ef\u4ee5\u6dfb\u52a0\u6807\u9898\u3001\u8bf4\u660e\u548c\u6ce8\u91ca\uff0c\u800c\u5728\u4ee3\u7801\u5355\u5143\u683c\u4e2d\u8fd0\u884cPython\u4ee3\u7801\u5e76\u67e5\u770b\u8f93\u51fa\u7ed3\u679c\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>display()<\/code>\u51fd\u6570\u53ef\u4ee5\u4ee5\u66f4\u7f8e\u89c2\u7684\u65b9\u5f0f\u5448\u73b0\u6570\u636e\uff0c\u4f8b\u5982\u663e\u793a\u8868\u683c\u6216\u56fe\u5f62\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8c03\u51faPython\u7ed3\u679c\u7a97\u53e3\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528IDLE\u3001Jupyter Notebook\u3001\u547d\u4ee4\u884c\u7ec8\u7aef\u3001\u96c6\u6210\u5f00\u53d1 [&hellip;]","protected":false},"author":3,"featured_media":1023896,"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\/1023884"}],"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=1023884"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1023884\/revisions"}],"predecessor-version":[{"id":1023898,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1023884\/revisions\/1023898"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1023896"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1023884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1023884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1023884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}