{"id":969945,"date":"2024-12-27T05:21:34","date_gmt":"2024-12-26T21:21:34","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/969945.html"},"modified":"2024-12-27T05:21:37","modified_gmt":"2024-12-26T21:21:37","slug":"python%e8%af%ad%e5%8f%a5%e5%86%99%e5%ae%8c%e5%a6%82%e4%bd%95%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/969945.html","title":{"rendered":"python\u8bed\u53e5\u5199\u5b8c\u5982\u4f55\u8fd0\u884c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24184005\/ba179687-d6df-457f-92f7-ad72aa6ba022.webp\" alt=\"python\u8bed\u53e5\u5199\u5b8c\u5982\u4f55\u8fd0\u884c\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u7f16\u5199\u597d\u8bed\u53e5\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u8fd0\u884c\u8fd9\u4e9b\u8bed\u53e5\uff0c\u5305\u62ec\u4f7f\u7528Python\u89e3\u91ca\u5668\u3001\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u548c\u547d\u4ee4\u884c\u754c\u9762\u7b49\u3002\u4ee5\u4e0b\u662f\u51e0\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\uff1a\u4f7f\u7528\u4ea4\u4e92\u5f0fPython\u89e3\u91ca\u5668\u3001\u5728IDE\u4e2d\u8fd0\u884c\u3001\u901a\u8fc7\u547d\u4ee4\u884c\u8fd0\u884c\u811a\u672c\u3001\u4f7f\u7528Jupyter Notebook\u3002<\/strong> \u5176\u4e2d\uff0c<strong>\u4f7f\u7528Jupyter Notebook<\/strong> \u662f\u4e00\u79cd\u4ea4\u4e92\u5f0f\u7684\u8fd0\u884c\u65b9\u5f0f\uff0c\u9002\u5408\u6570\u636e\u5206\u6790\u548c\u53ef\u89c6\u5316\u7b49\u4efb\u52a1\u3002Jupyter Notebook\u5141\u8bb8\u5728\u7f51\u9875\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884cPython\u4ee3\u7801\u5757\uff0c\u5e76\u53ef\u5373\u65f6\u67e5\u770b\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u4ea4\u4e92\u5f0fPython\u89e3\u91ca\u5668<\/p>\n<\/p>\n<p><p>Python\u89e3\u91ca\u5668\u662f\u4e00\u79cd\u7b80\u5355\u800c\u76f4\u63a5\u7684\u65b9\u6cd5\u6765\u8fd0\u884cPython\u4ee3\u7801\u3002\u901a\u8fc7\u6253\u5f00\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\uff0c\u8f93\u5165<code>python<\/code>\u8fdb\u5165\u4ea4\u4e92\u5f0f\u6a21\u5f0f\uff0c\u7136\u540e\u76f4\u63a5\u8f93\u5165Python\u8bed\u53e5\u5e76\u56de\u8f66\u5373\u53ef\u8fd0\u884c\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u7528\u4e8e\u6d4b\u8bd5\u77ed\u5c0f\u7684\u4ee3\u7801\u6bb5\u6216\u5b9e\u9a8c\u65b0\u7684Python\u8bed\u6cd5\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8fdb\u5165Python\u89e3\u91ca\u5668<\/strong>\uff1a\u6253\u5f00\u7ec8\u7aef\uff08\u5728macOS\u6216Linux\u4e0a\uff09\u6216\u547d\u4ee4\u63d0\u793a\u7b26\uff08\u5728Windows\u4e0a\uff09\uff0c\u8f93\u5165<code>python<\/code>\u6216<code>python3<\/code>\uff08\u53d6\u51b3\u4e8e\u4f60\u7684Python\u7248\u672c\uff09\u5e76\u6309\u4e0b\u56de\u8f66\u952e\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8f93\u5165\u548c\u8fd0\u884c\u4ee3\u7801<\/strong>\uff1a\u5728\u63d0\u793a\u7b26\u4e0b\u8f93\u5165Python\u4ee3\u7801\uff0c\u6309\u4e0b\u56de\u8f66\u952e\u540e\uff0c\u89e3\u91ca\u5668\u4f1a\u7acb\u5373\u8fd0\u884c\u8be5\u4ee3\u7801\u5e76\u663e\u793a\u7ed3\u679c\u3002\u4f8b\u5982\uff0c\u8f93\u5165<code>print(&quot;Hello, World!&quot;)<\/code>\u4f1a\u7acb\u5373\u8f93\u51fa<code>Hello, World!<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9000\u51fa\u89e3\u91ca\u5668<\/strong>\uff1a\u5b8c\u6210\u4ee3\u7801\u6d4b\u8bd5\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u8f93\u5165<code>exit()<\/code>\u6216\u6309<code>Ctrl + Z<\/code>\uff08Windows\uff09\u6216<code>Ctrl + D<\/code>\uff08macOS\/Linux\uff09\u9000\u51fa\u89e3\u91ca\u5668\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4f7f\u7528\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\u9002\u5408\u4e8e\u5feb\u901f\u6d4b\u8bd5\u548c\u8c03\u8bd5\uff0c\u4f46\u5bf9\u4e8e\u8f83\u957f\u7684\u7a0b\u5e8f\u6216\u9879\u76ee\u800c\u8a00\uff0c\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\u6216IDE\u6765\u7f16\u5199\u548c\u8fd0\u884cPython\u811a\u672c\u66f4\u4e3a\u65b9\u4fbf\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u5728IDE\u4e2d\u8fd0\u884c<\/p>\n<\/p>\n<p><p>\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u63d0\u4f9b\u4e86\u7f16\u5199\u3001\u7f16\u8f91\u548c\u8fd0\u884cPython\u4ee3\u7801\u7684\u5b8c\u6574\u5e73\u53f0\u3002\u5e38\u89c1\u7684Python IDE\u5305\u62ecPyCharm\u3001Visual Studio Code\u3001Spyder\u548cIDLE\u7b49\u3002\u8fd9\u4e9b\u5de5\u5177\u901a\u5e38\u5177\u6709\u5f3a\u5927\u7684\u8c03\u8bd5\u529f\u80fd\u3001\u4ee3\u7801\u81ea\u52a8\u8865\u5168\u548c\u8bed\u6cd5\u9ad8\u4eae\u663e\u793a\u7b49\u529f\u80fd\uff0c\u9002\u5408\u4e8e\u5f00\u53d1\u5927\u578b\u9879\u76ee\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u9009\u62e9\u548c\u5b89\u88c5IDE<\/strong>\uff1a\u6839\u636e\u4e2a\u4eba\u9700\u6c42\u548c\u504f\u597d\uff0c\u9009\u62e9\u5408\u9002\u7684IDE\u5e76\u8fdb\u884c\u5b89\u88c5\u3002PyCharm\u662f\u5e7f\u53d7\u6b22\u8fce\u7684\u9009\u62e9\uff0c\u63d0\u4f9b\u514d\u8d39\u793e\u533a\u7248\u548c\u4ed8\u8d39\u4e13\u4e1a\u7248\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efaPython\u9879\u76ee<\/strong>\uff1a\u6253\u5f00IDE\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u9879\u76ee\u6216\u6587\u4ef6\u3002\u5728\u9879\u76ee\u4e2d\uff0c\u53ef\u4ee5\u7ec4\u7ec7\u591a\u4e2aPython\u6587\u4ef6\u5e76\u7ba1\u7406\u9879\u76ee\u7684\u4f9d\u8d56\u5173\u7cfb\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f16\u5199\u4ee3\u7801<\/strong>\uff1a\u5728IDE\u7684\u7f16\u8f91\u5668\u4e2d\u7f16\u5199Python\u4ee3\u7801\u3002IDE\u901a\u5e38\u4f1a\u63d0\u4f9b\u8bed\u6cd5\u9ad8\u4eae\u3001\u4ee3\u7801\u8865\u5168\u548c\u9519\u8bef\u63d0\u793a\u7b49\u529f\u80fd\uff0c\u4ee5\u63d0\u9ad8\u7f16\u7a0b\u6548\u7387\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884c\u4ee3\u7801<\/strong>\uff1a\u5728IDE\u4e2d\uff0c\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u70b9\u51fb\u201c\u8fd0\u884c\u201d\u6309\u94ae\u6216\u4f7f\u7528\u5feb\u6377\u952e\uff08\u5982<code>Shift + F10<\/code>\uff09\u6765\u8fd0\u884c\u5f53\u524d\u6587\u4ef6\u6216\u9879\u76ee\u3002IDE\u4f1a\u5728\u63a7\u5236\u53f0\u4e2d\u663e\u793a\u8fd0\u884c\u7ed3\u679c\u548c\u8f93\u51fa\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4f7f\u7528IDE\u53ef\u4ee5\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\uff0c\u5c24\u5176\u9002\u5408\u4e8e\u590d\u6742\u7684Python\u9879\u76ee\u548c\u9700\u8981\u9891\u7e41\u8c03\u8bd5\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u901a\u8fc7\u547d\u4ee4\u884c\u8fd0\u884c\u811a\u672c<\/p>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\u4e2d\u8fd0\u884cPython\u811a\u672c\u662f\u4e00\u79cd\u5e38\u89c1\u4e14\u6709\u6548\u7684\u65b9\u5f0f\uff0c\u5c24\u5176\u9002\u5408\u4e8e\u81ea\u52a8\u5316\u4efb\u52a1\u548c\u6279\u5904\u7406\u64cd\u4f5c\u3002\u4f60\u53ef\u4ee5\u5c06Python\u4ee3\u7801\u4fdd\u5b58\u4e3a<code>.py<\/code>\u6587\u4ef6\uff0c\u5e76\u901a\u8fc7\u547d\u4ee4\u884c\u6267\u884c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efaPython\u811a\u672c\u6587\u4ef6<\/strong>\uff1a\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\uff08\u5982Notepad++\u3001Sublime Text\u6216Visual Studio Code\uff09\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6587\u4ef6\uff0c\u5e76\u5c06Python\u4ee3\u7801\u7c98\u8d34\u5230\u6587\u4ef6\u4e2d\u3002\u4fdd\u5b58\u6587\u4ef6\u65f6\uff0c\u4f7f\u7528<code>.py<\/code>\u4f5c\u4e3a\u6587\u4ef6\u6269\u5c55\u540d\uff0c\u4f8b\u5982<code>script.py<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6253\u5f00\u547d\u4ee4\u884c\u6216\u7ec8\u7aef<\/strong>\uff1a\u5728Windows\u4e0a\uff0c\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff1b\u5728macOS\u6216Linux\u4e0a\uff0c\u6253\u5f00\u7ec8\u7aef\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5bfc\u822a\u5230\u811a\u672c\u6240\u5728\u76ee\u5f55<\/strong>\uff1a\u4f7f\u7528<code>cd<\/code>\u547d\u4ee4\u8fdb\u5165Python\u811a\u672c\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6587\u4ef6\u4f4d\u4e8e\u684c\u9762\uff0c\u53ef\u4ee5\u4f7f\u7528<code>cd Desktop<\/code>\u8fdb\u5165\u684c\u9762\u76ee\u5f55\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884cPython\u811a\u672c<\/strong>\uff1a\u8f93\u5165<code>python script.py<\/code>\u6216<code>python3 script.py<\/code>\u5e76\u6309\u56de\u8f66\u952e\u8fd0\u884c\u811a\u672c\u3002Python\u89e3\u91ca\u5668\u4f1a\u6267\u884c\u811a\u672c\u4e2d\u7684\u4ee3\u7801\uff0c\u5e76\u5728\u547d\u4ee4\u884c\u4e2d\u663e\u793a\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u547d\u4ee4\u884c\u8fd0\u884c\u811a\u672c\u9002\u5408\u4e8e\u81ea\u52a8\u5316\u64cd\u4f5c\u548c\u9700\u8981\u5b9a\u671f\u6267\u884c\u7684\u4efb\u52a1\uff0c\u53ef\u4ee5\u7ed3\u5408\u4efb\u52a1\u8ba1\u5212\u5de5\u5177\u5b9e\u73b0\u66f4\u9ad8\u6548\u7684\u5de5\u4f5c\u6d41\u7a0b\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528Jupyter Notebook<\/p>\n<\/p>\n<p><p>Jupyter Notebook\u662f\u4e00\u79cd\u6d41\u884c\u7684\u4ea4\u4e92\u5f0f\u8ba1\u7b97\u73af\u5883\uff0c\u7279\u522b\u9002\u5408\u4e8e\u6570\u636e\u5206\u6790\u3001\u79d1\u5b66\u8ba1\u7b97\u548c\u6559\u5b66\u3002\u5b83\u5141\u8bb8\u7528\u6237\u5728\u7f51\u9875\u6d4f\u89c8\u5668\u4e2d\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\uff0c\u5e76\u5373\u65f6\u67e5\u770b\u7ed3\u679c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5Jupyter Notebook<\/strong>\uff1a\u9996\u5148\u9700\u8981\u5b89\u88c5Jupyter Notebook\uff0c\u5efa\u8bae\u4f7f\u7528Anaconda\u5206\u53d1\u7248\uff0c\u56e0\u4e3a\u5b83\u7b80\u5316\u4e86\u5b89\u88c5\u8fc7\u7a0b\u5e76\u9884\u88c5\u4e86\u8bb8\u591a\u79d1\u5b66\u8ba1\u7b97\u5e93\u3002\u5728\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\u4e2d\uff0c\u8f93\u5165<code>conda install jupyter<\/code>\u6765\u5b89\u88c5Jupyter Notebook\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u542f\u52a8Jupyter Notebook<\/strong>\uff1a\u5728\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\u4e2d\uff0c\u8f93\u5165<code>jupyter notebook<\/code>\u5e76\u56de\u8f66\u3002\u6d4f\u89c8\u5668\u4f1a\u81ea\u52a8\u6253\u5f00\u5e76\u663e\u793aJupyter Notebook\u7684\u4e3b\u9875\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u5176\u4e2d\u521b\u5efa\u548c\u7ba1\u7406\u7b14\u8bb0\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efa\u548c\u8fd0\u884c\u4ee3\u7801\u5355\u5143<\/strong>\uff1a\u5728Jupyter Notebook\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7b14\u8bb0\u672c\uff0c\u5e76\u5728\u5176\u4e2d\u6dfb\u52a0\u4ee3\u7801\u5355\u5143\u3002\u6bcf\u4e2a\u4ee3\u7801\u5355\u5143\u53ef\u4ee5\u5305\u542b\u4e00\u6bb5Python\u4ee3\u7801\uff0c\u70b9\u51fb\u201c\u8fd0\u884c\u201d\u6309\u94ae\u6216\u6309<code>Shift + Enter<\/code>\u5373\u53ef\u6267\u884c\u4ee3\u7801\u5e76\u663e\u793a\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4fdd\u5b58\u548c\u5206\u4eab\u7b14\u8bb0\u672c<\/strong>\uff1a\u5b8c\u6210\u4ee3\u7801\u7f16\u5199\u548c\u6d4b\u8bd5\u540e\uff0c\u53ef\u4ee5\u5c06\u7b14\u8bb0\u672c\u4fdd\u5b58\u4e3a<code>.ipynb<\/code>\u6587\u4ef6\uff0c\u5e76\u901a\u8fc7\u5bfc\u51fa\u529f\u80fd\u751f\u6210\u5176\u4ed6\u683c\u5f0f\uff08\u5982HTML\u6216PDF\uff09\u7684\u6587\u4ef6\uff0c\u65b9\u4fbf\u5206\u4eab\u548c\u5c55\u793a\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>Jupyter Notebook\u63d0\u4f9b\u4e86\u76f4\u89c2\u7684\u4ea4\u4e92\u754c\u9762\u548c\u5f3a\u5927\u7684\u53ef\u89c6\u5316\u529f\u80fd\uff0c\u662f\u6570\u636e\u79d1\u5b66\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u9886\u57df\u7684\u5229\u5668\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u9700\u6c42\u548c\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u65b9\u5f0f\u6765\u8fd0\u884cPython\u8bed\u53e5\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684\u4ea4\u4e92\u5f0f\u6d4b\u8bd5\uff0c\u8fd8\u662f\u590d\u6742\u7684\u9879\u76ee\u5f00\u53d1\uff0cPython\u7684\u7075\u6d3b\u6027\u548c\u591a\u6837\u6027\u90fd\u80fd\u6ee1\u8db3\u4e0d\u540c\u5c42\u6b21\u7684\u7f16\u7a0b\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728\u672c\u5730\u73af\u5883\u4e2d\u8fd0\u884cPython\u4ee3\u7801\uff1f<\/strong><br \/>\u8981\u5728\u672c\u5730\u8fd0\u884cPython\u4ee3\u7801\uff0c\u9996\u5148\u786e\u4fdd\u60a8\u5df2\u5b89\u88c5Python\u3002\u53ef\u4ee5\u901a\u8fc7\u5728\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165<code>python --version<\/code>\u6765\u68c0\u67e5\u5b89\u88c5\u60c5\u51b5\u3002\u5982\u679c\u672a\u5b89\u88c5\uff0c\u8bf7\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\uff08\u5982VS Code\u3001PyCharm\u6216\u7b80\u5355\u7684\u8bb0\u4e8b\u672c\uff09\u7f16\u5199\u4ee3\u7801\uff0c\u7136\u540e\u5c06\u5176\u4fdd\u5b58\u4e3a<code>.py<\/code>\u6587\u4ef6\u3002\u5728\u7ec8\u7aef\u4e2d\u5bfc\u822a\u5230\u6587\u4ef6\u6240\u5728\u76ee\u5f55\uff0c\u4f7f\u7528\u547d\u4ee4<code>python \u6587\u4ef6\u540d.py<\/code>\u6765\u8fd0\u884c\u4ee3\u7801\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Jupyter Notebook\u4e2d\u6267\u884cPython\u4ee3\u7801\uff1f<\/strong><br \/>Jupyter Notebook\u662f\u4e00\u4e2a\u975e\u5e38\u65b9\u4fbf\u7684\u5de5\u5177\uff0c\u7279\u522b\u9002\u5408\u8fdb\u884c\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u548c\u6570\u636e\u5206\u6790\u3002\u5b89\u88c5Anaconda\u6216\u76f4\u63a5\u901a\u8fc7pip\u5b89\u88c5Jupyter Notebook\u540e\uff0c\u53ef\u4ee5\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165<code>jupyter notebook<\/code>\u547d\u4ee4\u542f\u52a8\u5b83\u3002\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u7684\u754c\u9762\u4e2d\uff0c\u60a8\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Notebook\u5e76\u5728\u5355\u5143\u683c\u4e2d\u8f93\u5165Python\u4ee3\u7801\u3002\u8fd0\u884c\u5355\u5143\u683c\u53ea\u9700\u6309<code>Shift + Enter<\/code>\uff0c\u5373\u53ef\u7acb\u5373\u67e5\u770b\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u5728\u7ebf\u7f16\u7a0b\u5e73\u53f0\u4e0a\u6d4b\u8bd5Python\u4ee3\u7801\uff1f<\/strong><br \/>\u5982\u679c\u60a8\u4e0d\u60f3\u5728\u672c\u5730\u73af\u5883\u4e2d\u8bbe\u7f6ePython\uff0c\u53ef\u4ee5\u4f7f\u7528\u5728\u7ebf\u7f16\u7a0b\u5e73\u53f0\uff0c\u5982Replit\u3001Google Colab\u6216Codecademy\u7b49\u3002\u8fd9\u4e9b\u5e73\u53f0\u63d0\u4f9b\u4e86\u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u4e2d\u7f16\u5199\u548c\u8fd0\u884c\u4ee3\u7801\u7684\u529f\u80fd\u3002\u53ea\u9700\u8bbf\u95ee\u76f8\u5173\u7f51\u7ad9\uff0c\u6ce8\u518c\u4e00\u4e2a\u8d26\u53f7\uff0c\u521b\u5efa\u65b0\u7684Python\u9879\u76ee\u6216Notebook\uff0c\u8f93\u5165\u60a8\u7684\u4ee3\u7801\u5e76\u70b9\u51fb\u201c\u8fd0\u884c\u201d\u6309\u94ae\uff0c\u5373\u53ef\u770b\u5230\u6267\u884c\u7ed3\u679c\u3002\u8fd9\u79cd\u65b9\u5f0f\u975e\u5e38\u9002\u5408\u521d\u5b66\u8005\u548c\u5feb\u901f\u6d4b\u8bd5\u4ee3\u7801\u7247\u6bb5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u7f16\u5199\u597d\u8bed\u53e5\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u8fd0\u884c\u8fd9\u4e9b\u8bed\u53e5\uff0c\u5305\u62ec\u4f7f\u7528Python\u89e3\u91ca\u5668\u3001\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09 [&hellip;]","protected":false},"author":3,"featured_media":969950,"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\/969945"}],"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=969945"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/969945\/revisions"}],"predecessor-version":[{"id":969951,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/969945\/revisions\/969951"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/969950"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=969945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=969945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=969945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}