{"id":1109825,"date":"2025-01-08T17:13:54","date_gmt":"2025-01-08T09:13:54","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1109825.html"},"modified":"2025-01-08T17:13:57","modified_gmt":"2025-01-08T09:13:57","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8%e5%8d%8e%e4%b8%ba%e5%b9%b3%e6%9d%bf%e7%94%b5%e8%84%91%e4%b8%8a%e5%ae%89%e8%a3%85python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1109825.html","title":{"rendered":"\u5982\u4f55\u5728\u534e\u4e3a\u5e73\u677f\u7535\u8111\u4e0a\u5b89\u88c5python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25072929\/e2083819-a141-4171-87ee-436366d819c4.webp\" alt=\"\u5982\u4f55\u5728\u534e\u4e3a\u5e73\u677f\u7535\u8111\u4e0a\u5b89\u88c5python\" \/><\/p>\n<p><p> <strong>\u5982\u4f55\u5728\u534e\u4e3a\u5e73\u677f\u7535\u8111\u4e0a\u5b89\u88c5Python<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u534e\u4e3a\u5e73\u677f\u7535\u8111\u4e0a\u5b89\u88c5Python\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u5f0f\uff1a<strong>\u4f7f\u7528Termux\u5e94\u7528\u3001\u901a\u8fc7Pydroid 3\u5e94\u7528\u3001\u501f\u52a9\u865a\u62df\u73af\u5883\u548cIDE\u3001\u4f7f\u7528Cloud IDE<\/strong>\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u4f7f\u7528Termux\u5e94\u7528\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528Termux\u5e94\u7528<\/h3>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5Termux<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u5728\u534e\u4e3a\u5e73\u677f\u7535\u8111\u4e0a\u5b89\u88c5Termux\u5e94\u7528\u3002Termux\u662f\u4e00\u4e2aAndroid\u7ec8\u7aef\u4eff\u771f\u5668\u548cLinux\u73af\u5883\u5e94\u7528\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u5e73\u677f\u7535\u8111\u4e0a\u7684\u5e94\u7528\u5546\u5e97\uff08\u5982Google Play\u6216\u534e\u4e3a\u5e94\u7528\u5e02\u573a\uff09\u3002<\/li>\n<li>\u641c\u7d22\u201cTermux\u201d\u5e76\u70b9\u51fb\u5b89\u88c5\u3002<\/li>\n<\/ul>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00Termux\u5e94\u7528\uff0c\u4f60\u5c06\u770b\u5230\u4e00\u4e2a\u547d\u4ee4\u884c\u754c\u9762\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u66f4\u65b0\u5e76\u5b89\u88c5Python<\/h4>\n<\/p>\n<p><p>\u5728Termux\u4e2d\uff0c\u4f60\u9700\u8981\u5148\u66f4\u65b0\u5305\u7ba1\u7406\u5668\uff0c\u7136\u540e\u5b89\u88c5Python\u3002\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">pkg update<\/p>\n<p>pkg upgrade<\/p>\n<p>pkg install python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e9b\u547d\u4ee4\u5c06\u66f4\u65b0\u5305\u7ba1\u7406\u5668\u5e76\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Python\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u9a8c\u8bc1Python\u5b89\u88c5<\/h4>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u9a8c\u8bc1Python\u662f\u5426\u5b89\u88c5\u6210\u529f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">python --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u770b\u5230Python\u7248\u672c\u4fe1\u606f\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u901a\u8fc7Pydroid 3\u5e94\u7528<\/h3>\n<\/p>\n<p><p>Pydroid 3\u662f\u4e00\u4e2a\u4fbf\u6377\u7684Python IDE\uff0c\u9002\u7528\u4e8eAndroid\u8bbe\u5907\uff0c\u5305\u62ec\u534e\u4e3a\u5e73\u677f\u7535\u8111\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5Pydroid 3<\/h4>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u5e94\u7528\u5546\u5e97\uff08Google Play\u6216\u534e\u4e3a\u5e94\u7528\u5e02\u573a\uff09\u3002<\/li>\n<li>\u641c\u7d22\u201cPydroid 3\u201d\u5e76\u70b9\u51fb\u5b89\u88c5\u3002<\/li>\n<\/ul>\n<p><h4>2\u3001\u4f7f\u7528Pydroid 3<\/h4>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00Pydroid 3\u5e94\u7528\uff0c\u4f60\u53ef\u4ee5\u5728\u5176\u4e2d\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002\u8fd9\u4e2a\u5e94\u7528\u5185\u7f6e\u4e86Python\u89e3\u91ca\u5668\u548c\u4e00\u4e9b\u5e38\u7528\u7684\u5e93\uff0c\u975e\u5e38\u9002\u5408\u521d\u5b66\u8005\u548c\u7b80\u5355\u7684\u5f00\u53d1\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u501f\u52a9\u865a\u62df\u73af\u5883\u548cIDE<\/h3>\n<\/p>\n<p><p>\u5728\u534e\u4e3a\u5e73\u677f\u7535\u8111\u4e0a\uff0c\u4f60\u8fd8\u53ef\u4ee5\u901a\u8fc7\u5176\u4ed6\u65b9\u5f0f\u6765\u5b89\u88c5\u548c\u4f7f\u7528Python\uff0c\u4f8b\u5982\u4f7f\u7528\u865a\u62df\u73af\u5883\u548cIDE\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>DE\u6216Dcoder<\/h4>\n<\/p>\n<p><p>AIDE\u548cDcoder\u662f\u4e24\u6b3e\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u7684IDE\uff0c\u53ef\u4ee5\u5728Android\u8bbe\u5907\u4e0a\u4f7f\u7528\u3002<\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u5e94\u7528\u5546\u5e97\uff0c\u641c\u7d22\u201cAIDE\u201d\u6216\u201cDcoder\u201d\u5e76\u5b89\u88c5\u3002<\/li>\n<li>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00\u5e94\u7528\u5e76\u9009\u62e9Python\u73af\u5883\u3002<\/li>\n<\/ul>\n<p><h4>2\u3001\u914d\u7f6e\u865a\u62df\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u5728\u8fd9\u4e9bIDE\u4e2d\uff0c\u4f60\u53ef\u4ee5\u521b\u5efa\u548c\u7ba1\u7406\u865a\u62df\u73af\u5883\uff0c\u4ee5\u4fbf\u9694\u79bb\u4e0d\u540c\u9879\u76ee\u7684\u4f9d\u8d56\u9879\u3002\u5177\u4f53\u6b65\u9aa4\u53ef\u80fd\u56e0\u5e94\u7528\u800c\u5f02\uff0c\u8bf7\u53c2\u8003\u5e94\u7528\u5185\u7684\u5e2e\u52a9\u6587\u6863\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528Cloud IDE<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u4e0d\u60f3\u5728\u672c\u5730\u5b89\u88c5Python\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e91\u7aefIDE\uff0c\u4f8b\u5982Repl.it\u6216Google Colab\u3002\u8fd9\u4e9b\u5e73\u53f0\u63d0\u4f9b\u4e86\u5728\u7ebf\u7684Python\u5f00\u53d1\u73af\u5883\uff0c\u9002\u5408\u8fdb\u884c\u5b9e\u9a8c\u548c\u5c0f\u578b\u9879\u76ee\u5f00\u53d1\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u4f7f\u7528Repl.it<\/h4>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u8bbf\u95eeRepl.it\u5b98\u65b9\u7f51\u7ad9\u3002<\/li>\n<li>\u6ce8\u518c\u6216\u767b\u5f55\u8d26\u53f7\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u9879\u76ee\u3002<\/li>\n<\/ul>\n<p><h4>2\u3001\u4f7f\u7528Google Colab<\/h4>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u8bbf\u95eeGoogle Colab\u3002<\/li>\n<li>\u767b\u5f55Google\u8d26\u53f7\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Notebook\uff0c\u5e76\u9009\u62e9Python\u4f5c\u4e3a\u7f16\u7a0b\u8bed\u8a00\u3002<\/li>\n<\/ul>\n<p><p><strong>\u603b\u7ed3<\/strong>\uff1a<\/p>\n<\/p>\n<p><p>\u5728\u534e\u4e3a\u5e73\u677f\u7535\u8111\u4e0a\u5b89\u88c5Python\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5982<strong>\u4f7f\u7528Termux\u5e94\u7528\u3001\u901a\u8fc7Pydroid 3\u5e94\u7528\u3001\u501f\u52a9\u865a\u62df\u73af\u5883\u548cIDE\u3001\u4f7f\u7528Cloud IDE<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528Termux\u5e94\u7528\u662f\u4e00\u79cd\u8f83\u4e3a\u63a8\u8350\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5b8c\u6574\u7684Linux\u73af\u5883\uff0c\u652f\u6301\u66f4\u591a\u7684\u5f00\u53d1\u5de5\u5177\u548c\u5e93\u3002\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5728\u534e\u4e3a\u5e73\u677f\u7535\u8111\u4e0a\u5b89\u88c5\u548c\u4f7f\u7528Python\uff0c\u5f00\u59cb\u4f60\u7684\u7f16\u7a0b\u4e4b\u65c5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728\u534e\u4e3a\u5e73\u677f\u7535\u8111\u4e0a\u5b89\u88c5Python\u7684\u6b65\u9aa4\u662f\u600e\u6837\u7684\uff1f<\/strong><br \/>\u5728\u534e\u4e3a\u5e73\u677f\u7535\u8111\u4e0a\u5b89\u88c5Python\u901a\u5e38\u6d89\u53ca\u4e0b\u8f7d\u9002\u5408\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5982Pydroid 3\u6216QPython\u3002\u8fd9\u4e9b\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u5728\u534e\u4e3a\u5e94\u7528\u5e02\u573a\u6216\u5176\u4ed6\u5b89\u5353\u5e94\u7528\u5546\u5e97\u4e2d\u627e\u5230\u3002\u4e0b\u8f7d\u540e\uff0c\u6309\u7167\u5e94\u7528\u5185\u7684\u6307\u793a\u8fdb\u884c\u8bbe\u7f6e\uff0c\u60a8\u5c31\u53ef\u4ee5\u5728\u5e73\u677f\u7535\u8111\u4e0a\u5f00\u59cb\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002<\/p>\n<p><strong>\u5b89\u88c5Python\u540e\uff0c\u5982\u4f55\u5728\u534e\u4e3a\u5e73\u677f\u4e0a\u8fd0\u884cPython\u7a0b\u5e8f\uff1f<\/strong><br \/>\u5b89\u88c5\u5b8cPython\u5e94\u7528\u540e\uff0c\u60a8\u53ef\u4ee5\u6253\u5f00\u5e94\u7528\u5e76\u521b\u5efa\u65b0\u7684Python\u6587\u4ef6\u3002\u5728\u6587\u4ef6\u4e2d\u7f16\u5199\u4ee3\u7801\u540e\uff0c\u901a\u5e38\u4f1a\u6709\u4e00\u4e2a\u201c\u8fd0\u884c\u201d\u6309\u94ae\uff0c\u70b9\u51fb\u5373\u53ef\u6267\u884c\u7a0b\u5e8f\u3002\u5e94\u7528\u5185\u4e5f\u4f1a\u63d0\u4f9b\u4e00\u4e2a\u7ec8\u7aef\u6216\u63a7\u5236\u53f0\uff0c\u65b9\u4fbf\u60a8\u67e5\u770b\u8f93\u51fa\u7ed3\u679c\u548c\u8c03\u8bd5\u4ee3\u7801\u3002<\/p>\n<p><strong>\u5728\u534e\u4e3a\u5e73\u677f\u4e0a\u4f7f\u7528Python\u7f16\u7a0b\u65f6\uff0c\u662f\u5426\u9700\u8981\u4e92\u8054\u7f51\u8fde\u63a5\uff1f<\/strong><br \/>\u867d\u7136\u5728\u5e73\u677f\u7535\u8111\u4e0a\u4f7f\u7528Python\u8fdb\u884c\u7f16\u7a0b\u5e76\u4e0d\u603b\u662f\u9700\u8981\u4e92\u8054\u7f51\u8fde\u63a5\uff0c\u4f46\u67d0\u4e9b\u529f\u80fd\u53ef\u80fd\u4f1a\u4f9d\u8d56\u4e8e\u7f51\u7edc\u3002\u4f8b\u5982\uff0c\u4e0b\u8f7d\u989d\u5916\u7684\u5e93\u6216\u5305\uff0c\u4ee5\u53ca\u8bbf\u95ee\u5728\u7ebf\u6587\u6863\u548c\u6559\u7a0b\u65f6\u9700\u8981\u8fde\u63a5\u7f51\u7edc\u3002\u4e3a\u4e86\u66f4\u597d\u7684\u5b66\u4e60\u4f53\u9a8c\uff0c\u5efa\u8bae\u5728\u6709\u7f51\u7edc\u7684\u60c5\u51b5\u4e0b\u8fdb\u884c\u76f8\u5173\u64cd\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5982\u4f55\u5728\u534e\u4e3a\u5e73\u677f\u7535\u8111\u4e0a\u5b89\u88c5Python \u5728\u534e\u4e3a\u5e73\u677f\u7535\u8111\u4e0a\u5b89\u88c5Python\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u5f0f\uff1a\u4f7f\u7528Termux\u5e94 [&hellip;]","protected":false},"author":3,"featured_media":1109833,"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\/1109825"}],"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=1109825"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1109825\/revisions"}],"predecessor-version":[{"id":1109837,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1109825\/revisions\/1109837"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1109833"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1109825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1109825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1109825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}