{"id":1097640,"date":"2025-01-08T15:13:48","date_gmt":"2025-01-08T07:13:48","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1097640.html"},"modified":"2025-01-08T15:13:50","modified_gmt":"2025-01-08T07:13:50","slug":"%e5%a6%82%e4%bd%95%e7%94%a8%e6%b5%8f%e8%a7%88%e5%99%a8%e8%bf%90%e8%a1%8cpython%e4%bb%a3%e7%a0%81-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1097640.html","title":{"rendered":"\u5982\u4f55\u7528\u6d4f\u89c8\u5668\u8fd0\u884cpython\u4ee3\u7801"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24212324\/8ffd93ee-4eed-42b0-a796-42811016f15d.webp\" alt=\"\u5982\u4f55\u7528\u6d4f\u89c8\u5668\u8fd0\u884cpython\u4ee3\u7801\" \/><\/p>\n<p><p> <strong>\u5728\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884cPython\u4ee3\u7801\u7684\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u5728\u7ebf\u7f16\u8bd1\u5668\u3001\u6d4f\u89c8\u5668\u6269\u5c55\u3001Jupyter Notebook\u3001Anvil\u3001PyScript\u7b49\u3002<\/strong>\u6211\u4eec\u5c06\u8be6\u7ec6\u8ba8\u8bba\u5176\u4e2d\u7684\u4e00\u4e2a\u65b9\u6cd5\uff0c\u4f7f\u7528\u5728\u7ebf\u7f16\u8bd1\u5668\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5728\u7ebf\u7f16\u8bd1\u5668<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528\u5728\u7ebf\u7f16\u8bd1\u5668\u662f\u6700\u7b80\u5355\u76f4\u63a5\u7684\u65b9\u6cd5\u4e4b\u4e00\uff0c\u7528\u6237\u53ef\u4ee5\u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u4e2d\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002\u8fd9\u4e9b\u7f16\u8bd1\u5668\u4e0d\u9700\u8981\u5b89\u88c5\u4efb\u4f55\u8f6f\u4ef6\uff0c\u53ea\u9700\u8981\u8bbf\u95ee\u7f51\u7ad9\u5373\u53ef\u3002\u5e38\u7528\u7684\u5728\u7ebf\u7f16\u8bd1\u5668\u5305\u62ecRepl.it\u3001PythonAnywhere\u3001Google Colab\u7b49\u3002<\/p>\n<\/p>\n<p><h4>1. Repl.it<\/h4>\n<\/p>\n<p><p>Repl.it \u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u5728\u7ebf\u7f16\u8bd1\u5668\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ecPython\u3002\u5b83\u7684\u754c\u9762\u7b80\u5355\u76f4\u89c2\uff0c\u9002\u5408\u521d\u5b66\u8005\u548c\u4e13\u4e1a\u4eba\u58eb\u4f7f\u7528\u3002\u7528\u6237\u53ea\u9700\u8981\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95eeRepl.it\uff0c\u9009\u62e9Python\u8bed\u8a00\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u5f00\u59cb\u7f16\u5199\u548c\u8fd0\u884c\u4ee3\u7801\u4e86\u3002<\/p>\n<\/p>\n<p><p><strong>\u6b65\u9aa4\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00Repl.it\u7f51\u7ad9\uff08<a href=\"https:\/\/repl.it%EF%BC%89\">https:\/\/repl.it\uff09<\/a><\/li>\n<li>\u6ce8\u518c\u6216\u767b\u5f55\u8d26\u53f7<\/li>\n<li>\u9009\u62e9\u201cCreate Repl\u201d\uff0c\u9009\u62e9Python\u8bed\u8a00<\/li>\n<li>\u7f16\u5199\u4ee3\u7801\u540e\uff0c\u70b9\u51fb\u201cRun\u201d\u6309\u94ae\u8fd0\u884c\u4ee3\u7801<\/li>\n<\/ul>\n<p><p>Repl.it\u4e0d\u4ec5\u652f\u6301\u4ee3\u7801\u7f16\u5199\u548c\u8fd0\u884c\uff0c\u8fd8\u63d0\u4f9b\u4e86\u534f\u4f5c\u529f\u80fd\uff0c\u5141\u8bb8\u591a\u4e2a\u7528\u6237\u540c\u65f6\u7f16\u8f91\u540c\u4e00\u4e2a\u9879\u76ee\uff0c\u975e\u5e38\u9002\u5408\u56e2\u961f\u5408\u4f5c\u3002<\/p>\n<\/p>\n<p><h4>2. PythonAnywhere<\/h4>\n<\/p>\n<p><p>PythonAnywhere \u662f\u53e6\u4e00\u4e2a\u5f3a\u5927\u7684\u5728\u7ebf\u7f16\u8bd1\u5668\uff0c\u652f\u6301Python\u7f16\u7a0b\u8bed\u8a00\u3002\u5b83\u4e0d\u4ec5\u63d0\u4f9b\u4e86\u5728\u7ebf\u4ee3\u7801\u7f16\u8f91\u548c\u8fd0\u884c\u73af\u5883\uff0c\u8fd8\u63d0\u4f9b\u4e86\u670d\u52a1\u5668\u6258\u7ba1\u670d\u52a1\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u4e0a\u9762\u90e8\u7f72\u81ea\u5df1\u7684Python\u5e94\u7528\u3002<\/p>\n<\/p>\n<p><p><strong>\u6b65\u9aa4\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00PythonAnywhere\u7f51\u7ad9\uff08<a href=\"https:\/\/www.pythonanywhere.com%EF%BC%89\">https:\/\/www.pythonanywhere.com\uff09<\/a><\/li>\n<li>\u6ce8\u518c\u6216\u767b\u5f55\u8d26\u53f7<\/li>\n<li>\u9009\u62e9\u201cConsoles\u201d\uff0c\u9009\u62e9Python\u7248\u672c<\/li>\n<li>\u5728\u4ea4\u4e92\u5f0f\u63a7\u5236\u53f0\u4e2d\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801<\/li>\n<\/ul>\n<p><p>PythonAnywhere\u8fd8\u652f\u6301Jupyter Notebook\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e2d\u521b\u5efa\u548c\u7f16\u8f91Notebook\uff0c\u8fdb\u884c\u6570\u636e\u5206\u6790\u548c\u53ef\u89c6\u5316\u3002<\/p>\n<\/p>\n<p><h4>3. Google Colab<\/h4>\n<\/p>\n<p><p>Google Colab \u662f\u8c37\u6b4c\u63d0\u4f9b\u7684\u4e00\u79cd\u5728\u7ebf\u7f16\u7a0b\u73af\u5883\uff0c\u7c7b\u4f3c\u4e8eJupyter Notebook\uff0c\u652f\u6301Python\u4ee3\u7801\u7684\u7f16\u5199\u548c\u8fd0\u884c\u3002\u5b83\u8fd8\u63d0\u4f9b\u4e86\u514d\u8d39\u7684GPU\u52a0\u901f\uff0c\u975e\u5e38\u9002\u5408\u6df1\u5ea6\u5b66\u4e60\u548c\u6570\u636e\u79d1\u5b66\u9879\u76ee\u3002<\/p>\n<\/p>\n<p><p><strong>\u6b65\u9aa4\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00Google Colab\u7f51\u7ad9\uff08<a href=\"https:\/\/colab.research.google.com%EF%BC%89\">https:\/\/colab.research.google.com\uff09<\/a><\/li>\n<li>\u767b\u5f55Google\u8d26\u53f7<\/li>\n<li>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Notebook<\/li>\n<li>\u5728\u4ee3\u7801\u5355\u5143\u683c\u4e2d\u7f16\u5199Python\u4ee3\u7801\uff0c\u6309Shift + Enter\u8fd0\u884c\u4ee3\u7801<\/li>\n<\/ul>\n<p><p>Google Colab\u8fd8\u652f\u6301\u4e0eGoogle Drive\u96c6\u6210\uff0c\u7528\u6237\u53ef\u4ee5\u65b9\u4fbf\u5730\u4fdd\u5b58\u548c\u5206\u4eab\u81ea\u5df1\u7684Notebook\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u6d4f\u89c8\u5668\u6269\u5c55<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u5728\u7ebf\u7f16\u8bd1\u5668\uff0c\u7528\u6237\u8fd8\u53ef\u4ee5\u4f7f\u7528\u6d4f\u89c8\u5668\u6269\u5c55\u6765\u8fd0\u884cPython\u4ee3\u7801\u3002\u8fd9\u4e9b\u6269\u5c55\u901a\u5e38\u662f\u8f7b\u91cf\u7ea7\u7684\uff0c\u9002\u5408\u5feb\u901f\u6d4b\u8bd5\u548c\u8c03\u8bd5\u4ee3\u7801\u3002\u5e38\u7528\u7684\u6d4f\u89c8\u5668\u6269\u5c55\u5305\u62ecPython Shell for Chrome\u7b49\u3002<\/p>\n<\/p>\n<p><h4>1. Python Shell for Chrome<\/h4>\n<\/p>\n<p><p>Python Shell for Chrome \u662f\u4e00\u4e2aChrome\u6d4f\u89c8\u5668\u6269\u5c55\uff0c\u5141\u8bb8\u7528\u6237\u5728\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884cPython\u4ee3\u7801\u3002\u5b89\u88c5\u540e\uff0c\u7528\u6237\u53ef\u4ee5\u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00Python Shell\uff0c\u8f93\u5165\u4ee3\u7801\u5e76\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><p><strong>\u6b65\u9aa4\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00Chrome\u7f51\u4e0a\u5e94\u7528\u5e97\uff08<a href=\"https:\/\/chrome.google.com\/webstore%EF%BC%89\">https:\/\/chrome.google.com\/webstore\uff09<\/a><\/li>\n<li>\u641c\u7d22\u201cPython Shell\u201d<\/li>\n<li>\u5b89\u88c5Python Shell\u6269\u5c55<\/li>\n<li>\u70b9\u51fb\u6d4f\u89c8\u5668\u53f3\u4e0a\u89d2\u7684Python Shell\u56fe\u6807\uff0c\u6253\u5f00Python Shell<\/li>\n<li>\u5728Python Shell\u4e2d\u7f16\u5199\u548c\u8fd0\u884c\u4ee3\u7801<\/li>\n<\/ul>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u9700\u8981\u5feb\u901f\u6d4b\u8bd5\u548c\u8c03\u8bd5\u4ee3\u7801\u7684\u7528\u6237\uff0c\u4e0d\u9700\u8981\u6253\u5f00\u5355\u72ec\u7684\u7f16\u8bd1\u5668\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528Jupyter Notebook<\/h3>\n<\/p>\n<p><p>Jupyter Notebook \u662f\u4e00\u4e2a\u5f00\u6e90\u7684Web\u5e94\u7528\uff0c\u5141\u8bb8\u7528\u6237\u5728\u6d4f\u89c8\u5668\u4e2d\u521b\u5efa\u548c\u5171\u4eab\u6587\u6863\uff0c\u8fd9\u4e9b\u6587\u6863\u5305\u542b\u4ee3\u7801\u3001\u65b9\u7a0b\u5f0f\u3001\u53ef\u89c6\u5316\u548c\u6587\u672c\u3002Jupyter Notebook\u5e7f\u6cdb\u7528\u4e8e\u6570\u636e\u6e05\u6d17\u548c\u8f6c\u6362\u3001\u6570\u503c\u6a21\u62df\u3001\u7edf\u8ba1\u5efa\u6a21\u3001<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u548c\u6df1\u5ea6\u5b66\u4e60\u7b49\u9886\u57df\u3002<\/p>\n<\/p>\n<p><p><strong>\u6b65\u9aa4\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u5b89\u88c5Jupyter Notebook\uff08<code>pip install jupyterlab<\/code>\uff09<\/li>\n<li>\u542f\u52a8Jupyter Notebook\uff08<code>jupyter notebook<\/code>\uff09<\/li>\n<li>\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00Jupyter Notebook\u754c\u9762<\/li>\n<li>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Notebook\uff0c\u9009\u62e9Python\u5185\u6838<\/li>\n<li>\u5728\u4ee3\u7801\u5355\u5143\u683c\u4e2d\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801<\/li>\n<\/ul>\n<p><p>Jupyter Notebook\u7684\u4f18\u70b9\u662f\u652f\u6301\u4ee3\u7801\u548c\u6587\u6863\u7684\u6df7\u5408\u7f16\u8f91\uff0c\u7528\u6237\u53ef\u4ee5\u65b9\u4fbf\u5730\u8bb0\u5f55\u548c\u5206\u4eab\u81ea\u5df1\u7684\u5de5\u4f5c\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528Anvil<\/h3>\n<\/p>\n<p><p>Anvil \u662f\u4e00\u4e2a\u5e73\u53f0\uff0c\u5141\u8bb8\u7528\u6237\u5728\u6d4f\u89c8\u5668\u4e2d\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\uff0c\u5e76\u521b\u5efaWeb\u5e94\u7528\u3002\u7528\u6237\u53ef\u4ee5\u4f7f\u7528Anvil\u7684\u62d6\u653e\u754c\u9762\u5feb\u901f\u521b\u5efaWeb\u5e94\u7528\uff0c\u4f7f\u7528Python\u7f16\u5199\u540e\u7aef\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><p><strong>\u6b65\u9aa4\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00Anvil\u7f51\u7ad9\uff08<a href=\"https:\/\/anvil.works%EF%BC%89\">https:\/\/anvil.works\uff09<\/a><\/li>\n<li>\u6ce8\u518c\u6216\u767b\u5f55\u8d26\u53f7<\/li>\n<li>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5e94\u7528\uff0c\u9009\u62e9Python\u4f5c\u4e3a\u540e\u7aef\u8bed\u8a00<\/li>\n<li>\u4f7f\u7528Anvil\u7684\u62d6\u653e\u754c\u9762\u8bbe\u8ba1\u524d\u7aef\u754c\u9762<\/li>\n<li>\u7f16\u5199Python\u4ee3\u7801\u5b9e\u73b0\u540e\u7aef\u903b\u8f91<\/li>\n<li>\u70b9\u51fb\u201cRun\u201d\u6309\u94ae\u8fd0\u884c\u5e94\u7528<\/li>\n<\/ul>\n<p><p>Anvil\u7684\u4f18\u70b9\u662f\u53ef\u4ee5\u5feb\u901f\u521b\u5efa\u548c\u90e8\u7f72Web\u5e94\u7528\uff0c\u9002\u5408\u9700\u8981\u5feb\u901f\u5f00\u53d1\u548c\u6d4b\u8bd5\u7684\u7528\u6237\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528PyScript<\/h3>\n<\/p>\n<p><p>PyScript \u662f\u4e00\u4e2a\u65b0\u7684\u9879\u76ee\uff0c\u5141\u8bb8\u7528\u6237\u5728\u6d4f\u89c8\u5668\u4e2d\u76f4\u63a5\u8fd0\u884cPython\u4ee3\u7801\u3002PyScript\u4f7f\u7528WebAssembly\u548cPyodide\u6280\u672f\uff0c\u5c06Python\u89e3\u91ca\u5668\u5d4c\u5165\u5230\u6d4f\u89c8\u5668\u4e2d\uff0c\u7528\u6237\u53ef\u4ee5\u5728HTML\u6587\u4ef6\u4e2d\u76f4\u63a5\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p><strong>\u6b65\u9aa4\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u521b\u5efa\u4e00\u4e2aHTML\u6587\u4ef6<\/li>\n<li>\u5f15\u5165PyScript\u5e93\uff08<code>&lt;script defer src=&quot;https:\/\/pyscript.net\/latest\/pyscript.js&quot;&gt;&lt;\/script&gt;<\/code>\uff09<\/li>\n<li>\u5728HTML\u6587\u4ef6\u4e2d\u7f16\u5199Python\u4ee3\u7801\uff08\u4f7f\u7528<code>&lt;py-script&gt;<\/code>\u6807\u7b7e\uff09<\/li>\n<li>\u6253\u5f00HTML\u6587\u4ef6\uff0c\u5728\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884c<\/li>\n<\/ul>\n<p><p><strong>\u793a\u4f8b\u4ee3\u7801\uff1a<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-html\">&lt;!DOCTYPE html&gt;<\/p>\n<p>&lt;html lang=&quot;en&quot;&gt;<\/p>\n<p>&lt;head&gt;<\/p>\n<p>    &lt;meta charset=&quot;UTF-8&quot;&gt;<\/p>\n<p>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<\/p>\n<p>    &lt;script defer src=&quot;https:\/\/pyscript.net\/latest\/pyscript.js&quot;&gt;&lt;\/script&gt;<\/p>\n<p>    &lt;title&gt;PyScript Example&lt;\/title&gt;<\/p>\n<p>&lt;\/head&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>    &lt;h1&gt;Hello, PyScript!&lt;\/h1&gt;<\/p>\n<p>    &lt;py-script&gt;<\/p>\n<p>        print(&quot;Hello, World!&quot;)<\/p>\n<p>    &lt;\/py-script&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>PyScript\u7684\u4f18\u70b9\u662f\u65e0\u9700\u5b89\u88c5\u4efb\u4f55\u8f6f\u4ef6\uff0c\u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884cPython\u4ee3\u7801\uff0c\u9002\u5408\u9700\u8981\u5feb\u901f\u5c55\u793a\u548c\u5206\u4eab\u4ee3\u7801\u7684\u7528\u6237\u3002<\/p>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884cPython\u4ee3\u7801\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u7528\u6237\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002\u4f7f\u7528\u5728\u7ebf\u7f16\u8bd1\u5668\uff08\u5982Repl.it\u3001PythonAnywhere\u3001Google Colab\uff09\u662f\u6700\u7b80\u5355\u76f4\u63a5\u7684\u65b9\u6cd5\uff0c\u9002\u5408\u521d\u5b66\u8005\u548c\u4e13\u4e1a\u4eba\u58eb\u3002\u4f7f\u7528\u6d4f\u89c8\u5668\u6269\u5c55\uff08\u5982Python Shell for Chrome\uff09\u9002\u5408\u9700\u8981\u5feb\u901f\u6d4b\u8bd5\u548c\u8c03\u8bd5\u4ee3\u7801\u7684\u7528\u6237\u3002\u4f7f\u7528Jupyter Notebook\u9002\u5408\u6570\u636e\u5206\u6790\u548c\u79d1\u5b66\u8ba1\u7b97\uff0c\u4f7f\u7528Anvil\u9002\u5408\u5feb\u901f\u5f00\u53d1\u548c\u90e8\u7f72Web\u5e94\u7528\uff0c\u4f7f\u7528PyScript\u9002\u5408\u76f4\u63a5\u5728HTML\u6587\u4ef6\u4e2d\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p>\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u7528\u6237\u90fd\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e2d\u65b9\u4fbf\u5730\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\uff0c\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u548c\u7f16\u7a0b\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884cPython\u4ee3\u7801\uff1f<\/strong><br \/>\u5728\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884cPython\u4ee3\u7801\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e9b\u5728\u7ebf\u5f00\u53d1\u73af\u5883\u6216\u7279\u5b9a\u7684\u5de5\u5177\u6765\u5b9e\u73b0\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u50cfReplit\u3001Google Colab\u6216Jupyter Notebook\u8fd9\u6837\u7684\u5728\u7ebf\u5e73\u53f0\uff0c\u7528\u6237\u53ef\u4ee5\u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u4e2d\u7f16\u5199\u548c\u6267\u884cPython\u4ee3\u7801\u3002\u8fd9\u4e9b\u5e73\u53f0\u63d0\u4f9b\u4e86\u53cb\u597d\u7684\u7528\u6237\u754c\u9762\u548c\u5f3a\u5927\u7684\u529f\u80fd\uff0c\u4f7f\u5f97Python\u7f16\u7a0b\u53d8\u5f97\u66f4\u52a0\u7b80\u5355\u548c\u4fbf\u6377\u3002<\/p>\n<p><strong>\u9700\u8981\u5b89\u88c5\u54ea\u4e9b\u5de5\u5177\u6216\u6269\u5c55\u624d\u80fd\u5728\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884cPython\uff1f<\/strong><br \/>\u5982\u679c\u4f60\u5e0c\u671b\u5728\u672c\u5730\u6d4f\u89c8\u5668\u73af\u5883\u4e2d\u8fd0\u884cPython\u4ee3\u7801\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528Brython\u6216Pyodide\u7b49\u5de5\u5177\u3002Brython\u662f\u4e00\u79cdPython\u7684\u5b9e\u73b0\uff0c\u5141\u8bb8\u7528\u6237\u5728\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884cPython\u4ee3\u7801\uff0c\u800cPyodide\u5219\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5b8c\u6574\u7684Python\u89e3\u91ca\u5668\uff0c\u53ef\u4ee5\u5904\u7406NumPy\u548cPandas\u7b49\u5e93\u3002\u8fd9\u4e9b\u5de5\u5177\u901a\u5e38\u4e0d\u9700\u8981\u590d\u6742\u7684\u5b89\u88c5\u6b65\u9aa4\uff0c\u4f7f\u7528\u65f6\u53ea\u9700\u5728HTML\u6587\u4ef6\u4e2d\u5f15\u5165\u76f8\u5e94\u7684\u811a\u672c\u5373\u53ef\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u7f51\u9875\u4e0a\u5c55\u793aPython\u8fd0\u884c\u7ed3\u679c\uff1f<\/strong><br \/>\u4e3a\u4e86\u5728\u7f51\u9875\u4e0a\u5c55\u793aPython\u4ee3\u7801\u7684\u8fd0\u884c\u7ed3\u679c\uff0c\u53ef\u4ee5\u4f7f\u7528Flask\u6216Django\u7b49Web\u6846\u67b6\u6765\u521b\u5efa\u4e00\u4e2a\u540e\u7aef\u670d\u52a1\uff0c\u63a5\u6536\u524d\u7aef\u7684\u8bf7\u6c42\u5e76\u8fd4\u56de\u7ed3\u679c\u3002\u901a\u8fc7AJAX\u8bf7\u6c42\uff0c\u524d\u7aef\u53ef\u4ee5\u5411\u540e\u7aef\u53d1\u9001Python\u4ee3\u7801\u6216\u6570\u636e\uff0c\u540e\u7aef\u6267\u884c\u540e\u518d\u5c06\u7ed3\u679c\u8fd4\u56de\u7ed9\u524d\u7aef\u8fdb\u884c\u5c55\u793a\u3002\u6b64\u5916\uff0c\u5229\u7528Jupyter Notebook\u7684nbconvert\u529f\u80fd\uff0c\u4e5f\u53ef\u4ee5\u5c06Notebook\u8f6c\u5316\u4e3aHTML\u683c\u5f0f\uff0c\u4ece\u800c\u5728\u7f51\u9875\u4e0a\u5c55\u793a\u5206\u6790\u7ed3\u679c\u548c\u53ef\u89c6\u5316\u56fe\u8868\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884cPython\u4ee3\u7801\u7684\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u5728\u7ebf\u7f16\u8bd1\u5668\u3001\u6d4f\u89c8\u5668\u6269\u5c55\u3001Jupyter Notebook\u3001Anvi [&hellip;]","protected":false},"author":3,"featured_media":1097645,"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\/1097640"}],"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=1097640"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1097640\/revisions"}],"predecessor-version":[{"id":1097648,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1097640\/revisions\/1097648"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1097645"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1097640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1097640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1097640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}