{"id":1015427,"date":"2024-12-27T12:06:56","date_gmt":"2024-12-27T04:06:56","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1015427.html"},"modified":"2024-12-27T12:06:58","modified_gmt":"2024-12-27T04:06:58","slug":"%e6%89%8b%e6%9c%ba%e4%b8%8apython%e5%a6%82%e4%bd%95%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1015427.html","title":{"rendered":"\u624b\u673a\u4e0apython\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\/25095307\/d51cbff7-5136-4d54-bb91-e304e2a8542b.webp\" alt=\"\u624b\u673a\u4e0apython\u5982\u4f55\u8fd0\u884c\" \/><\/p>\n<p><p> \u5728\u624b\u673a\u4e0a\u8fd0\u884cPython\u6709\u591a\u79cd\u65b9\u6cd5\uff0c<strong>\u53ef\u4ee5\u901a\u8fc7\u5b89\u88c5\u7279\u5b9a\u7684\u5e94\u7528\u7a0b\u5e8f\u3001\u4f7f\u7528\u5728\u7ebf\u7f16\u8bd1\u5668\u3001\u6216\u8005\u901a\u8fc7\u8fdc\u7a0b\u8bbf\u95ee\u670d\u52a1\u5668<\/strong>\u6765\u5b9e\u73b0\u3002\u5176\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u5728\u624b\u673a\u4e0a\u5b89\u88c5Python\u7f16\u8bd1\u5668\u5e94\u7528\u7a0b\u5e8f\uff0c\u5982Pydroid 3\u3001QPython\u7b49\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5728\u624b\u673a\u4e0a\u8fd0\u884cPython\u7684\u51e0\u79cd\u65b9\u5f0f\uff0c\u5e2e\u52a9\u4f60\u6839\u636e\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5Python\u7f16\u8bd1\u5668\u5e94\u7528\u7a0b\u5e8f<\/p>\n<\/p>\n<ol>\n<li><strong>Pydroid 3<\/strong><\/li>\n<\/ol>\n<p><p>Pydroid 3\u662f\u4e00\u4e2a\u4e13\u4e3aAndroid\u8bbe\u5907\u8bbe\u8ba1\u7684Python 3 IDE\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5b8c\u6574\u7684\u5f00\u53d1\u73af\u5883\uff0c\u4f7f\u4f60\u80fd\u591f\u5728\u79fb\u52a8\u8bbe\u5907\u4e0a\u7f16\u5199\u3001\u8fd0\u884c\u548c\u8c03\u8bd5Python\u4ee3\u7801\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u5b89\u88c5\u4e0e\u4f7f\u7528<\/strong>\uff1a\u53ef\u4ee5\u4eceGoogle Play\u5546\u5e97\u4e0b\u8f7d\u5e76\u5b89\u88c5Pydroid 3\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00\u5e94\u7528\u7a0b\u5e8f\uff0c\u4f60\u4f1a\u770b\u5230\u4e00\u4e2a\u7b80\u6d01\u7684\u4ee3\u7801\u7f16\u8f91\u5668\u754c\u9762\u3002\u5728\u8fd9\u4e2a\u754c\u9762\u4e2d\uff0c\u4f60\u53ef\u4ee5\u8f93\u5165Python\u4ee3\u7801\u5e76\u6267\u884c\u3002\u70b9\u51fb\u8fd0\u884c\u6309\u94ae\u540e\uff0c\u4ee3\u7801\u7684\u8f93\u51fa\u7ed3\u679c\u4f1a\u663e\u793a\u5728\u4e0b\u65b9\u7684\u63a7\u5236\u53f0\u4e2d\u3002<\/li>\n<li><strong>\u529f\u80fd\u4e0e\u7279\u70b9<\/strong>\uff1aPydroid 3\u652f\u6301\u6807\u51c6Python\u5e93\uff0c\u5e76\u5141\u8bb8\u4f60\u5b89\u88c5\u7b2c\u4e09\u65b9\u5e93\u3002\u4e0d\u8fc7\uff0c\u5b89\u88c5\u7b2c\u4e09\u65b9\u5e93\u53ef\u80fd\u9700\u8981\u989d\u5916\u7684\u8bbe\u7f6e\u3002\u5728Pydroid 3\u4e2d\uff0c\u4f60\u8fd8\u53ef\u4ee5\u8fdb\u884c\u6587\u4ef6\u64cd\u4f5c\u3001\u8c03\u8bd5\u4ee3\u7801\u4ee5\u53ca\u4f7f\u7528\u56fe\u5f62\u7528\u6237\u754c\u9762\u5de5\u5177\u5305\u7b49\u529f\u80fd\u3002<\/li>\n<\/ul>\n<ol start=\"2\">\n<li><strong>QPython<\/strong><\/li>\n<\/ol>\n<p><p>QPython\u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684Python IDE\uff0c\u652f\u6301Python 2\u548cPython 3\u7248\u672c\uff0c\u9002\u7528\u4e8eAndroid\u8bbe\u5907\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u5b89\u88c5\u4e0e\u4f7f\u7528<\/strong>\uff1a\u540c\u6837\u53ef\u4ee5\u5728Google Play\u5546\u5e97\u4e2d\u627e\u5230QPython\u5e76\u5b89\u88c5\u3002\u542f\u52a8\u5e94\u7528\u7a0b\u5e8f\u540e\uff0c\u4f60\u53ef\u4ee5\u521b\u5efa\u65b0\u7684Python\u811a\u672c\u6216\u8fd0\u884c\u5df2\u6709\u7684\u811a\u672c\u3002QPython\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u6269\u5c55\u63d2\u4ef6\uff0c\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u5f00\u53d1\u9700\u6c42\u3002<\/li>\n<li><strong>\u529f\u80fd\u4e0e\u7279\u70b9<\/strong>\uff1aQPython\u652f\u6301\u591a\u79cdPython\u5e93\uff0c\u5e76\u5185\u7f6e\u4e86\u8bb8\u591a\u5e38\u7528\u5de5\u5177\uff0c\u5982\u79d1\u5b66\u8ba1\u7b97\u5de5\u5177\u3001Web\u6846\u67b6\u7b49\u3002QPython\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e2a\u4ea4\u4e92\u5f0fPython\u63a7\u5236\u53f0\uff0c\u65b9\u4fbf\u4f60\u8fdb\u884c\u5b9e\u65f6\u8c03\u8bd5\u548c\u5b9e\u9a8c\u3002<\/li>\n<\/ul>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u5728\u7ebf\u7f16\u8bd1\u5668<\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u4e0d\u60f3\u5728\u624b\u673a\u4e0a\u5b89\u88c5\u4efb\u4f55\u5e94\u7528\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528\u5728\u7ebfPython\u7f16\u8bd1\u5668\u3002\u8fd9\u4e9b\u7f16\u8bd1\u5668\u5141\u8bb8\u4f60\u901a\u8fc7\u7f51\u9875\u6d4f\u89c8\u5668\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528Repl.it<\/strong><\/li>\n<\/ol>\n<p><p>Repl.it\u662f\u4e00\u4e2a\u6d41\u884c\u7684\u5728\u7ebf\u7f16\u7a0b\u5e73\u53f0\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ecPython\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u624b\u673a\u6d4f\u89c8\u5668\u8bbf\u95eeRepl.it\u5e76\u521b\u5efaPython\u9879\u76ee\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u4f7f\u7528\u65b9\u6cd5<\/strong>\uff1a\u5728\u624b\u673a\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00Repl.it\u7f51\u7ad9\uff0c\u6ce8\u518c\u6216\u767b\u5f55\u540e\uff0c\u9009\u62e9Python\u8bed\u8a00\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u9879\u76ee\u3002\u4f60\u53ef\u4ee5\u5728\u7f16\u8f91\u5668\u4e2d\u7f16\u5199Python\u4ee3\u7801\uff0c\u5e76\u901a\u8fc7\u70b9\u51fb\u201cRun\u201d\u6309\u94ae\u6765\u6267\u884c\u4ee3\u7801\u3002<\/li>\n<li><strong>\u4f18\u70b9\u4e0e\u9650\u5236<\/strong>\uff1aRepl.it\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5b8c\u6574\u7684\u5f00\u53d1\u73af\u5883\uff0c\u5e76\u652f\u6301\u591a\u7528\u6237\u534f\u4f5c\u5f00\u53d1\u3002\u7136\u800c\uff0c\u7531\u4e8e\u7f51\u7edc\u8fde\u63a5\u7684\u9650\u5236\uff0c\u4ee3\u7801\u6267\u884c\u901f\u5ea6\u53ef\u80fd\u4e0d\u5982\u672c\u5730\u73af\u5883\u3002\u6b64\u5916\uff0cRepl.it\u7684\u514d\u8d39\u7248\u672c\u5bf9\u9879\u76ee\u7684\u8d44\u6e90\u4f7f\u7528\u6709\u9650\u5236\u3002<\/li>\n<\/ul>\n<ol start=\"2\">\n<li><strong>\u5176\u4ed6\u5728\u7ebf\u7f16\u8bd1\u5668<\/strong><\/li>\n<\/ol>\n<p><p>\u9664\u4e86Repl.it\uff0c\u8fd8\u6709\u8bb8\u591a\u5176\u4ed6\u5728\u7ebf\u7f16\u8bd1\u5668\uff0c\u5982PythonAnywhere\u3001JDoodle\u7b49\u3002\u8fd9\u4e9b\u5e73\u53f0\u63d0\u4f9b\u4e86\u7c7b\u4f3c\u7684\u529f\u80fd\uff0c\u4f60\u53ef\u4ee5\u6839\u636e\u4e2a\u4eba\u559c\u597d\u9009\u62e9\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u901a\u8fc7\u8fdc\u7a0b\u8bbf\u95ee\u670d\u52a1\u5668<\/p>\n<\/p>\n<p><p>\u53e6\u4e00\u79cd\u65b9\u6cd5\u662f\u5728\u4f60\u7684\u624b\u673a\u4e0a\u4f7f\u7528SSH\u5de5\u5177\u8bbf\u95ee\u8fdc\u7a0b\u670d\u52a1\u5668\uff0c\u5e76\u5728\u670d\u52a1\u5668\u4e0a\u8fd0\u884cPython\u4ee3\u7801\u3002\u8fd9\u79cd\u65b9\u5f0f\u9002\u7528\u4e8e\u9700\u8981\u5904\u7406\u590d\u6742\u4efb\u52a1\u6216\u5927\u6570\u636e\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u8bbe\u7f6e\u8fdc\u7a0b\u670d\u52a1\u5668<\/strong><\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u6709\u4e00\u4e2a\u53ef\u4ee5\u8fd0\u884cPython\u7684\u8fdc\u7a0b\u670d\u52a1\u5668\u3002\u4f60\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528\u4e91\u670d\u52a1\u63d0\u4f9b\u5546\uff08\u5982AWS\u3001Google Cloud\u3001Azure\uff09\u63d0\u4f9b\u7684\u865a\u62df\u673a\uff0c\u6216\u8005\u5728\u672c\u5730\u642d\u5efa\u4e00\u53f0\u670d\u52a1\u5668\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528SSH\u5de5\u5177<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u624b\u673a\u4e0a\u5b89\u88c5SSH\u5ba2\u6237\u7aef\u5e94\u7528\u7a0b\u5e8f\uff0c\u5982Termius\u3001JuiceSSH\u7b49\u3002\u8fd9\u4e9b\u5e94\u7528\u7a0b\u5e8f\u5141\u8bb8\u4f60\u901a\u8fc7SSH\u534f\u8bae\u8fde\u63a5\u5230\u8fdc\u7a0b\u670d\u52a1\u5668\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u8fde\u63a5\u4e0e\u64cd\u4f5c<\/strong>\uff1a\u6253\u5f00SSH\u5ba2\u6237\u7aef\uff0c\u8f93\u5165\u670d\u52a1\u5668\u7684IP\u5730\u5740\u3001\u7528\u6237\u540d\u548c\u5bc6\u7801\u8fdb\u884c\u8fde\u63a5\u3002\u8fde\u63a5\u6210\u529f\u540e\uff0c\u4f60\u53ef\u4ee5\u5728\u670d\u52a1\u5668\u7684\u7ec8\u7aef\u4e2d\u8f93\u5165Python\u547d\u4ee4\u6765\u8fd0\u884c\u4ee3\u7801\u3002<\/li>\n<li><strong>\u4f18\u70b9\u4e0e\u9650\u5236<\/strong>\uff1a\u901a\u8fc7\u8fdc\u7a0b\u8bbf\u95ee\u670d\u52a1\u5668\uff0c\u4f60\u53ef\u4ee5\u5229\u7528\u670d\u52a1\u5668\u5f3a\u5927\u7684\u8ba1\u7b97\u8d44\u6e90\u6765\u5904\u7406\u590d\u6742\u7684Python\u4efb\u52a1\u3002\u7136\u800c\uff0c\u8fd9\u79cd\u65b9\u5f0f\u9700\u8981\u4e00\u5b9a\u7684\u6280\u672f\u80cc\u666f\uff0c\u5e76\u4e14\u4f9d\u8d56\u4e8e\u7a33\u5b9a\u7684\u7f51\u7edc\u8fde\u63a5\u3002<\/li>\n<\/ul>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728\u624b\u673a\u4e0a\u8fd0\u884cPython\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4f9b\u9009\u62e9\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u4f60\u7684\u9700\u6c42\u548c\u6280\u672f\u6c34\u5e73\u3002\u5bf9\u4e8e\u521d\u5b66\u8005\u6216\u8f7b\u91cf\u7ea7\u5f00\u53d1\u4efb\u52a1\uff0c\u63a8\u8350\u4f7f\u7528Pydroid 3\u6216QPython\u7b49\u672c\u5730\u5e94\u7528\u7a0b\u5e8f\u3002\u5982\u679c\u9700\u8981\u8fdb\u884c\u534f\u4f5c\u5f00\u53d1\u6216\u4e0d\u4fbf\u5b89\u88c5\u5e94\u7528\uff0c\u53ef\u4ee5\u4f7f\u7528\u5728\u7ebf\u7f16\u8bd1\u5668\u3002\u800c\u5bf9\u4e8e\u590d\u6742\u7684\u4efb\u52a1\uff0c\u8fdc\u7a0b\u8bbf\u95ee\u670d\u52a1\u5668\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u5f0f\uff0c\u79fb\u52a8\u8bbe\u5907\u4e0a\u7684Python\u5f00\u53d1\u90fd\u80fd\u5e2e\u52a9\u4f60\u5728\u4efb\u4f55\u65f6\u95f4\u3001\u4efb\u4f55\u5730\u70b9\u8fdb\u884c\u7f16\u7a0b\u5b66\u4e60\u548c\u9879\u76ee\u5f00\u53d1\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728\u624b\u673a\u4e0a\u5b89\u88c5Python\u73af\u5883\uff1f<\/strong><br \/>\u5728\u624b\u673a\u4e0a\u8fd0\u884cPython\u901a\u5e38\u9700\u8981\u5b89\u88c5\u76f8\u5173\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u5bf9\u4e8eAndroid\u8bbe\u5907\uff0c\u53ef\u4ee5\u4f7f\u7528Termux\u6216QPython\u7b49\u5e94\u7528\uff0c\u800c\u5bf9\u4e8eiOS\u8bbe\u5907\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528Pythonista\u6216Pyto\u3002\u8fd9\u4e9b\u5e94\u7528\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5b8c\u6574\u7684Python\u73af\u5883\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u5176\u4e2d\u7f16\u5199\u548c\u6267\u884cPython\u4ee3\u7801\u3002<\/p>\n<p><strong>\u624b\u673a\u4e0a\u8fd0\u884cPython\u7684\u6027\u80fd\u5982\u4f55\uff1f<\/strong><br \/>\u624b\u673a\u7684\u6027\u80fd\u76f8\u6bd4\u4e8e\u684c\u9762\u8ba1\u7b97\u673a\u901a\u5e38\u8f83\u4f4e\uff0c\u56e0\u6b64\u5728\u624b\u673a\u4e0a\u8fd0\u884c\u590d\u6742\u7684Python\u7a0b\u5e8f\u53ef\u80fd\u4f1a\u9047\u5230\u6027\u80fd\u74f6\u9888\u3002\u8f7b\u91cf\u7ea7\u7684\u811a\u672c\u548c\u7b80\u5355\u7684\u5e94\u7528\u7a0b\u5e8f\u901a\u5e38\u53ef\u4ee5\u6d41\u7545\u8fd0\u884c\uff0c\u4f46\u9700\u8981\u907f\u514d\u8fc7\u4e8e\u590d\u6742\u7684\u8ba1\u7b97\u6216\u4f9d\u8d56\u5927\u578b\u5e93\u7684\u5e94\u7528\u3002<\/p>\n<p><strong>\u5728\u624b\u673a\u4e0a\u8fd0\u884cPython\u65f6\uff0c\u5982\u4f55\u8c03\u8bd5\u4ee3\u7801\uff1f<\/strong><br \/>\u5927\u591a\u6570Python\u73af\u5883\u5e94\u7528\u90fd\u63d0\u4f9b\u4e86\u57fa\u672c\u7684\u8c03\u8bd5\u5de5\u5177\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u6253\u5370\u8c03\u8bd5\u4fe1\u606f\u3001\u4f7f\u7528\u65ad\u70b9\u6216\u9519\u8bef\u4fe1\u606f\u6765\u8ffd\u8e2a\u4ee3\u7801\u95ee\u9898\u3002\u6b64\u5916\uff0c\u4e00\u4e9b\u5e94\u7528\u5982Pythonista\u8fd8\u63d0\u4f9b\u4e86\u5185\u7f6e\u7684\u8c03\u8bd5\u5668\uff0c\u65b9\u4fbf\u7528\u6237\u9010\u6b65\u6267\u884c\u4ee3\u7801\uff0c\u67e5\u627e\u6f5c\u5728\u9519\u8bef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728\u624b\u673a\u4e0a\u8fd0\u884cPython\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b89\u88c5\u7279\u5b9a\u7684\u5e94\u7528\u7a0b\u5e8f\u3001\u4f7f\u7528\u5728\u7ebf\u7f16\u8bd1\u5668\u3001\u6216\u8005\u901a\u8fc7\u8fdc\u7a0b\u8bbf\u95ee\u670d\u52a1\u5668\u6765\u5b9e\u73b0\u3002 [&hellip;]","protected":false},"author":3,"featured_media":1015432,"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\/1015427"}],"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=1015427"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1015427\/revisions"}],"predecessor-version":[{"id":1015433,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1015427\/revisions\/1015433"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1015432"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1015427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1015427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1015427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}