{"id":981746,"date":"2024-12-27T07:05:08","date_gmt":"2024-12-26T23:05:08","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/981746.html"},"modified":"2024-12-27T07:05:10","modified_gmt":"2024-12-26T23:05:10","slug":"python%e4%bb%a3%e7%a0%81%e6%ae%b5%e5%a6%82%e4%bd%95%e8%be%93%e5%85%a5","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/981746.html","title":{"rendered":"python\u4ee3\u7801\u6bb5\u5982\u4f55\u8f93\u5165"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24210537\/f18a290f-0b3f-4c4e-bff4-5dd7457d3dee.webp\" alt=\"python\u4ee3\u7801\u6bb5\u5982\u4f55\u8f93\u5165\" \/><\/p>\n<p><p> <strong>Python\u4ee3\u7801\u6bb5\u7684\u8f93\u5165\u65b9\u6cd5\u6709\u591a\u79cd\uff1a\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\u7f16\u5199\u3001\u4f7f\u7528Jupyter Notebook\u8fdb\u884c\u4ea4\u4e92\u5f0f\u8f93\u5165\u3001\u901a\u8fc7\u547d\u4ee4\u884c\u754c\u9762\u76f4\u63a5\u8f93\u5165\u3002\u5728\u8fd9\u4e9b\u65b9\u6cd5\u4e2d\uff0c\u9009\u62e9\u9002\u5408\u7684\u5de5\u5177\u53ef\u4ee5\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u3001\u4fbf\u4e8e\u8c03\u8bd5\u3001\u652f\u6301\u53ef\u89c6\u5316\u3002\u63a8\u8350\u4f7f\u7528Jupyter Notebook\uff0c\u56e0\u4e3a\u5176\u4ea4\u4e92\u5f0f\u754c\u9762\u548c\u53ef\u89c6\u5316\u652f\u6301\u975e\u5e38\u9002\u5408\u6570\u636e\u5206\u6790\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u7684\u4efb\u52a1\u3002<\/strong><\/p>\n<\/p>\n<p><p>Python\u4ee3\u7801\u6bb5\u7684\u8f93\u5165\u65b9\u5f0f\u56e0\u4f7f\u7528\u7684\u5de5\u5177\u548c\u5e73\u53f0\u800c\u5f02\u3002\u5728\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u65f6\uff0c\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u548c\u73af\u5883\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684Python\u4ee3\u7801\u8f93\u5165\u65b9\u6cd5\u53ca\u5176\u4f18\u52bf\uff1a<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u6587\u672c\u7f16\u8f91\u5668\u7f16\u5199<\/h3>\n<\/p>\n<p><p>\u6587\u672c\u7f16\u8f91\u5668\u662f\u6700\u57fa\u7840\u7684\u4ee3\u7801\u7f16\u5199\u5de5\u5177\uff0c\u652f\u6301\u591a\u79cd\u6587\u4ef6\u683c\u5f0f\u548c\u7f16\u7801\u6a21\u5f0f\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528Visual Studio Code<\/strong><br \/>Visual Studio Code\u662f\u4e00\u6b3e\u5f3a\u5927\u7684\u5f00\u6e90\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u3002\u5b83\u63d0\u4f9b\u4e86Python\u6269\u5c55\u63d2\u4ef6\uff0c\u652f\u6301\u8bed\u6cd5\u9ad8\u4eae\u3001\u4ee3\u7801\u8865\u5168\u548c\u8c03\u8bd5\u529f\u80fd\u3002\u4f7f\u7528VS Code\u7f16\u5199Python\u4ee3\u7801\uff0c\u53ef\u4ee5\u901a\u8fc7\u96c6\u6210\u7ec8\u7aef\u76f4\u63a5\u8fd0\u884c\u4ee3\u7801\uff0c\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5229\u7528PyCharm<\/strong><br \/>PyCharm\u662fJetBr<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ns\u51fa\u54c1\u7684\u4e13\u4e1aPython\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\uff0c\u9002\u5408\u5927\u578b\u9879\u76ee\u7684\u5f00\u53d1\u3002\u5176\u667a\u80fd\u4ee3\u7801\u5bfc\u822a\u3001\u91cd\u6784\u529f\u80fd\uff0c\u4ee5\u53ca\u5185\u7f6e\u7684\u8c03\u8bd5\u548c\u6d4b\u8bd5\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u9ad8\u6548\u5730\u7ba1\u7406\u548c\u7f16\u5199\u4ee3\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e8c\u3001Jupyter Notebook<\/h3>\n<\/p>\n<p><p>Jupyter Notebook\u662f\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u8ba1\u7b97\u73af\u5883\uff0c\u53ef\u4ee5\u5728\u5176\u4e2d\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4ea4\u4e92\u5f0f\u5f00\u53d1<\/strong><br \/>Jupyter Notebook\u5141\u8bb8\u7528\u6237\u5728\u5355\u5143\u683c\u4e2d\u7f16\u5199\u4ee3\u7801\u5e76\u5373\u65f6\u8fd0\u884c\uff0c\u65b9\u4fbf\u8c03\u8bd5\u548c\u9010\u6b65\u6d4b\u8bd5\u4ee3\u7801\u7247\u6bb5\u3002\u5176\u4ea4\u4e92\u6027\u4f7f\u5f97\u5f00\u53d1\u8005\u53ef\u4ee5\u5728\u5206\u6790\u8fc7\u7a0b\u4e2d\u7acb\u5373\u770b\u5230\u7ed3\u679c\uff0c\u9002\u5408\u6570\u636e\u5206\u6790\u548c\u79d1\u5b66\u8ba1\u7b97\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u53ef\u89c6\u5316\u652f\u6301<\/strong><br \/>Jupyter Notebook\u652f\u6301\u5c06\u7ed3\u679c\u4ee5\u56fe\u8868\u548c\u8868\u683c\u7684\u5f62\u5f0f\u5c55\u793a\uff0c\u8fd9\u5bf9\u6570\u636e\u79d1\u5b66\u5bb6\u548c\u7814\u7a76\u4eba\u5458\u5c24\u4e3a\u91cd\u8981\u3002Matplotlib\u3001Seaborn\u7b49\u6570\u636e\u53ef\u89c6\u5316\u5e93\u5728Jupyter Notebook\u4e2d\u53ef\u4ee5\u76f4\u63a5\u663e\u793a\u751f\u6210\u7684\u56fe\u5f62\uff0c\u4fbf\u4e8e\u5206\u6790\u548c\u5c55\u793a\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e09\u3001\u547d\u4ee4\u884c\u754c\u9762<\/h3>\n<\/p>\n<p><p>\u5728\u7ec8\u7aef\u4e2d\u76f4\u63a5\u8f93\u5165\u548c\u8fd0\u884cPython\u4ee3\u7801\u662f\u6700\u7b80\u5355\u7684\u65b9\u5f0f\uff0c\u9002\u5408\u5feb\u901f\u6d4b\u8bd5\u5c0f\u6bb5\u4ee3\u7801\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528Python\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668<\/strong><br \/>\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165<code>python<\/code>\u6216<code>python3<\/code>\u53ef\u4ee5\u542f\u52a8Python\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\u3002\u5728\u8fd9\u4e2a\u6a21\u5f0f\u4e0b\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u9010\u884c\u8f93\u5165Python\u547d\u4ee4\u5e76\u7acb\u5373\u770b\u5230\u8f93\u51fa\u3002\u9002\u5408\u7528\u6765\u6d4b\u8bd5\u7b80\u5355\u7684\u8bed\u6cd5\u548c\u51fd\u6570\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884cPython\u811a\u672c<\/strong><br \/>\u5728\u547d\u4ee4\u884c\u4e2d\uff0c\u4f7f\u7528<code>python script.py<\/code>\u53ef\u4ee5\u6267\u884c\u5b8c\u6574\u7684Python\u811a\u672c\u3002\u8fd9\u79cd\u65b9\u5f0f\u9002\u5408\u8fd0\u884c\u5f00\u53d1\u5b8c\u6210\u7684\u7a0b\u5e8f\u6216\u81ea\u52a8\u5316\u811a\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u56db\u3001\u5728\u7ebf\u5f00\u53d1\u73af\u5883<\/h3>\n<\/p>\n<p><p>\u5728\u7ebfPython\u5f00\u53d1\u73af\u5883\u63d0\u4f9b\u4e86\u65e0\u9700\u5b89\u88c5\u4efb\u4f55\u8f6f\u4ef6\u5373\u53ef\u7f16\u5199\u548c\u8fd0\u884c\u4ee3\u7801\u7684\u4fbf\u6377\u6027\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>Google Colab<\/strong><br \/>Google Colab\u662f\u4e00\u4e2a\u57fa\u4e8eJupyter Notebook\u7684\u5728\u7ebf\u5e73\u53f0\uff0c\u7531\u8c37\u6b4c\u63d0\u4f9b\u3002\u5b83\u652f\u6301\u514d\u8d39\u4f7f\u7528GPU\u8fdb\u884c\u8ba1\u7b97\uff0c\u8fd9\u5bf9\u4e8e\u9700\u8981\u8fdb\u884c\u5927\u89c4\u6a21\u8ba1\u7b97\u7684\u673a\u5668\u5b66\u4e60\u9879\u76ee\u975e\u5e38\u6709\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Replit<\/strong><br \/>Replit\u662f\u4e00\u4e2a\u5728\u7ebf\u7f16\u7a0b\u5e73\u53f0\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ecPython\u3002\u7528\u6237\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e2d\u76f4\u63a5\u7f16\u5199\u3001\u8fd0\u884c\u548c\u5206\u4eab\u4ee3\u7801\uff0c\u9002\u5408\u534f\u4f5c\u5f00\u53d1\u548c\u6559\u5b66\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e94\u3001\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><p>\u5728\u79fb\u52a8\u8bbe\u5907\u4e0a\u5f00\u53d1Python\u4ee3\u7801\u867d\u7136\u4e0d\u5e38\u89c1\uff0c\u4f46\u4e00\u4e9b\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u4e86\u8fd9\u79cd\u53ef\u80fd\u6027\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>Pydroid 3<\/strong><br \/>Pydroid 3\u662f\u4e00\u4e2aAndroid\u5e94\u7528\u7a0b\u5e8f\uff0c\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5b8c\u6574\u7684Python 3\u73af\u5883\u3002\u7528\u6237\u53ef\u4ee5\u5728\u667a\u80fd\u624b\u673a\u6216\u5e73\u677f\u7535\u8111\u4e0a\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\uff0c\u9002\u5408\u5728\u79fb\u52a8\u8bbe\u5907\u4e0a\u8fdb\u884c\u7b80\u5355\u7684\u7f16\u7a0b\u7ec3\u4e60\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Pythonista<\/strong><br \/>Pythonista\u662fiOS\u5e73\u53f0\u4e0a\u7684\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\uff0c\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5f3a\u5927\u7684Python\u5f00\u53d1\u73af\u5883\u3002\u5b83\u652f\u6301\u591a\u79cd\u5e93\uff0c\u5e76\u63d0\u4f9b\u4e86\u7b80\u6d01\u7684\u7528\u6237\u754c\u9762\uff0c\u9002\u5408\u5728iPhone\u6216iPad\u4e0a\u8fdb\u884cPython\u7f16\u7a0b\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u516d\u3001\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u96c6\u6210<\/h3>\n<\/p>\n<p><p>\u5728\u56e2\u961f\u5408\u4f5c\u5f00\u53d1\u4e2d\uff0c\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u662f\u4e0d\u53ef\u6216\u7f3a\u7684\u5de5\u5177\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528Git\u8fdb\u884c\u7248\u672c\u63a7\u5236<\/strong><br \/>Git\u662f\u6700\u6d41\u884c\u7684\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u5141\u8bb8\u5f00\u53d1\u8005\u8ddf\u8e2a\u4ee3\u7801\u7684\u66f4\u6539\u5e76\u4e0e\u5176\u4ed6\u4eba\u534f\u4f5c\u3002\u901a\u8fc7\u5c06\u4ee3\u7801\u5b58\u50a8\u5728Git\u4ed3\u5e93\u4e2d\uff0c\u56e2\u961f\u6210\u5458\u53ef\u4ee5\u5e76\u884c\u5de5\u4f5c\uff0c\u5408\u5e76\u4ee3\u7801\u5e76\u7ba1\u7406\u9879\u76ee\u7684\u4e0d\u540c\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u96c6\u6210GitHub\u6216GitLab<\/strong><br \/>GitHub\u548cGitLab\u662f\u63d0\u4f9bGit\u4ed3\u5e93\u6258\u7ba1\u670d\u52a1\u7684\u4e91\u5e73\u53f0\u3002\u5b83\u4eec\u652f\u6301<a href=\"https:\/\/docs.pingcode.com\/code-review\" target=\"_blank\">\u4ee3\u7801\u5ba1\u67e5<\/a>\u3001\u95ee\u9898\u8ddf\u8e2a\u548c\u6301\u7eed\u96c6\u6210\u7b49\u529f\u80fd\uff0c\u9002\u5408\u56e2\u961f\u9879\u76ee\u7684\u7ba1\u7406\u548c\u5f00\u53d1\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e03\u3001\u4ee3\u7801\u7247\u6bb5\u7ba1\u7406\u5de5\u5177<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528\u4ee3\u7801\u7247\u6bb5\u7ba1\u7406\u5de5\u5177\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u91cd\u7528\u6027\uff0c\u65b9\u4fbf\u5728\u4e0d\u540c\u9879\u76ee\u4e2d\u5171\u4eab\u548c\u4f7f\u7528\u5e38\u7528\u4ee3\u7801\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>Snippet Manager<\/strong><br \/>\u4ee3\u7801\u7247\u6bb5\u7ba1\u7406\u5668\u5982SnippetsLab\u548cCodeBox\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u7ec4\u7ec7\u548c\u7ba1\u7406\u5e38\u7528\u7684\u4ee3\u7801\u7247\u6bb5\u3002\u901a\u8fc7\u8fd9\u4e9b\u5de5\u5177\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5feb\u901f\u627e\u5230\u5e76\u63d2\u5165\u5e38\u7528\u7684\u4ee3\u7801\u6bb5\uff0c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u96c6\u6210\u5f00\u53d1\u73af\u5883\u652f\u6301<\/strong><br \/>\u5927\u591a\u6570\u73b0\u4ee3IDE\uff0c\u5982PyCharm\u548cVS Code\uff0c\u90fd\u652f\u6301\u4ee3\u7801\u7247\u6bb5\u7684\u7ba1\u7406\u548c\u81ea\u52a8\u8865\u5168\u3002\u7528\u6237\u53ef\u4ee5\u81ea\u5b9a\u4e49\u4ee3\u7801\u7247\u6bb5\uff0c\u5e76\u5728\u7f16\u5199\u4ee3\u7801\u65f6\u5feb\u901f\u63d2\u5165\uff0c\u63d0\u9ad8\u7f16\u5199\u6548\u7387\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u516b\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u9009\u62e9\u5408\u9002\u7684Python\u4ee3\u7801\u8f93\u5165\u65b9\u5f0f\u53d6\u51b3\u4e8e\u5f00\u53d1\u8005\u7684\u9700\u6c42\u3001\u9879\u76ee\u7684\u89c4\u6a21\u4ee5\u53ca\u6240\u7528\u7684\u5de5\u5177\u548c\u5e73\u53f0\u3002\u5bf9\u4e8e\u521d\u5b66\u8005\uff0cJupyter Notebook\u548c\u5728\u7ebf\u7f16\u7a0b\u5e73\u53f0\u63d0\u4f9b\u4e86\u7b80\u5355\u6613\u7528\u7684\u73af\u5883\uff1b\u5bf9\u4e8e\u4e13\u4e1a\u5f00\u53d1\u8005\u548c\u56e2\u961f\uff0c\u4f7f\u7528IDE\u548c\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u53ef\u4ee5\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u548c\u534f\u4f5c\u80fd\u529b\u3002\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u5f0f\uff0c\u4e86\u89e3\u6bcf\u79cd\u5de5\u5177\u7684\u7279\u70b9\u548c\u4f18\u52bf\u5c06\u6709\u52a9\u4e8e\u5728\u4e0d\u540c\u573a\u666f\u4e0b\u505a\u51fa\u6700\u4f73\u9009\u62e9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8f93\u5165\u7528\u6237\u6570\u636e\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u53ef\u4ee5\u8f7b\u677e\u83b7\u53d6\u7528\u6237\u7684\u8f93\u5165\u3002\u8be5\u51fd\u6570\u4f1a\u6682\u505c\u7a0b\u5e8f\u7684\u6267\u884c\uff0c\u7b49\u5f85\u7528\u6237\u8f93\u5165\u4fe1\u606f\u3002\u8f93\u5165\u7684\u6570\u636e\u4f1a\u4ee5\u5b57\u7b26\u4e32\u5f62\u5f0f\u8fd4\u56de\uff0c\u5982\u679c\u9700\u8981\u5176\u4ed6\u6570\u636e\u7c7b\u578b\uff08\u5982\u6574\u6570\u6216\u6d6e\u70b9\u6570\uff09\uff0c\u53ef\u4ee5\u4f7f\u7528\u7c7b\u578b\u8f6c\u6362\uff0c\u5982<code>int()<\/code>\u6216<code>float()<\/code>\u3002<\/p>\n<p><strong>Python\u8f93\u5165\u7684\u6570\u636e\u53ef\u4ee5\u8fdb\u884c\u54ea\u4e9b\u64cd\u4f5c\uff1f<\/strong><br \/>\u83b7\u53d6\u7528\u6237\u8f93\u5165\u540e\uff0c\u53ef\u4ee5\u5bf9\u5176\u8fdb\u884c\u5404\u79cd\u64cd\u4f5c\uff0c\u6bd4\u5982\u5b58\u50a8\u5230\u53d8\u91cf\u4e2d\u3001\u8fdb\u884c\u6570\u5b66\u8fd0\u7b97\u3001\u5b57\u7b26\u4e32\u5904\u7406\u7b49\u3002\u901a\u8fc7\u5bf9\u8f93\u5165\u6570\u636e\u7684\u9a8c\u8bc1\u548c\u5904\u7406\uff0c\u7a0b\u5e8f\u53ef\u4ee5\u66f4\u597d\u5730\u5e94\u5bf9\u4e0d\u540c\u7684\u7528\u6237\u8f93\u5165\u60c5\u51b5\uff0c\u786e\u4fdd\u8fd0\u884c\u7684\u7a33\u5b9a\u6027\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u8fdb\u884c\u591a\u884c\u8f93\u5165\uff1f<\/strong><br \/>\u8981\u5b9e\u73b0\u591a\u884c\u8f93\u5165\uff0c\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u7ed3\u6784\uff0c\u6bd4\u5982<code>while<\/code>\u5faa\u73af\uff0c\u7ed3\u5408<code>input()<\/code>\u51fd\u6570\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u7279\u5b9a\u7684\u7ed3\u675f\u7b26\uff08\u4f8b\u5982\u8f93\u5165&quot;exit&quot;\uff09\u6765\u7ed3\u675f\u8f93\u5165\u3002\u4e5f\u53ef\u4ee5\u4f7f\u7528<code>sys.stdin<\/code>\u6765\u8bfb\u53d6\u591a\u884c\u8f93\u5165\uff0c\u8fd9\u5728\u5904\u7406\u6587\u4ef6\u6216\u5927\u6bb5\u6587\u672c\u65f6\u975e\u5e38\u6709\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u4ee3\u7801\u6bb5\u7684\u8f93\u5165\u65b9\u6cd5\u6709\u591a\u79cd\uff1a\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\u7f16\u5199\u3001\u4f7f\u7528Jupyter Notebook\u8fdb\u884c\u4ea4\u4e92\u5f0f\u8f93\u5165\u3001\u901a [&hellip;]","protected":false},"author":3,"featured_media":981755,"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\/981746"}],"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=981746"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/981746\/revisions"}],"predecessor-version":[{"id":981759,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/981746\/revisions\/981759"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/981755"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=981746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=981746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=981746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}