在android上编写python代码

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15078361/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-18 13:15:36  来源:igfitidea点击:

Writing python code on android

androidpython

提问by Kelson448

I recently got a android tablet (nexus 7) and would like to be able to write python programs on it (not for it) without access to the internet or needing to access any other device to run the program. If somebody could suggest an app, or tell me how to set it up, it would be great. If however, someone could suggest an app that works with a different language, that would also be nice.

我最近得到了一个 android 平板电脑(nexus 7)并且希望能够在它上面编写 python 程序(不是为了它)而无需访问互联网或需要访问任何其他设备来运行该程序。如果有人可以推荐一个应用程序,或者告诉我如何设置它,那就太好了。但是,如果有人可以建议使用不同语言的应用程序,那也很好。

采纳答案by pyrospade

If you want to be able to run a Python interpreter on the device, use SL4A.

如果您希望能够在设备上运行 Python 解释器,请使用 SL4A。

http://www.github.com/damonkohler/sl4a

http://www.github.com/damonkohler/sl4a

The best editor I've used is DroidEdit. I actually forked out the $2 for the pro version.

我用过的最好的编辑器是 DroidEdit。我实际上为专业版支付了 2 美元。

https://play.google.com/store/apps/details?id=com.aor.droidedit.pro&hl=en

https://play.google.com/store/apps/details?id=com.aor.droidedit.pro&hl=en

回答by ianhanniballake

If you are comfortable doing Python development/testing on the command line, you could follow these instructionsto get Python running in Terminal IDE

如果您习惯于在命令行上进行 Python 开发/测试,您可以按照这些说明终端 IDE 中运行 Python

回答by saver

There is an awesome QPythonproject here. You may just install the applicationfrom play market and enjoy Python coding everywhere.

这里有一个很棒的QPython项目。您可以从 Play Market安装应用程序,并在任何地方享受 Python 编码。

回答by Jayesh

The best offline IDE I ever use is Pydroid. I love it's feature to easy share on Pastebin.

我用过的最好的离线 IDE 是Pydroid。我喜欢在 Pastebin 上轻松分享的功能。

回答by Sandor Rado

Recently tried Pydroid, the best IDE on Android, autocompletion and code analysis works awesome, supports many libraries, much better than QPython3 that doesn't even have a pip in its third version yet.

最近尝试了Pydroid,Android 上最好的 IDE,自动完成和代码分析工作很棒,支持许多库,比 QPython3 好得多,它的第三个版本甚至还没有 pip。