Android 上的 Python 解释器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13793158/
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
Python Interpreter on Android
提问by turnt
So I want to practice python on my Android. Is there a way I can get the interpreter or an interpreter emulator on my device?
所以我想在我的Android上练习python。有没有办法在我的设备上获得口译员或口译员模拟器?
采纳答案by brentlance
There's also Python for Android(Py4A), which is intended to work with SL4A. The documentation for Py4A is not as extensive as SL4A, but there are a few examples for Py4A available here.
还有Python for Android(Py4A),旨在与 SL4A 一起使用。对于Py4A文档并不像SL4A那样广泛,但也有Py4A可用的几个例子在这里。
In addition, there's Kivy, a crossplatform Python-based development framework for Android, PC, Linux, and iOS. I've played around with Kivy a little bit in the past, and while it's very powerful, it's documentation has been lacking, and the code is difficult to decipher.
此外,还有Kivy,这是一个基于 Python 的跨平台开发框架,适用于 Android、PC、Linux 和 iOS。过去我玩过一点 Kivy,虽然它非常强大,但缺乏文档,而且代码难以破译。
回答by timc
Check out the Scripting Layer 4 Android(sl4a).
查看Scripting Layer 4 Android(sl4a)。
There are a number of good Python examples here.
有许多的好Python示例在这里。
回答by Alf
You can use the termuxapp, link to homepage, which is available in the google marketand requires no root. It is a terminal emulator with a full Linux environment and via apt install pythonyou can install python. apt listgives you a list of all available packages.
您可以使用该termux应用程序,链接到主页,该应用程序在谷歌市场上可用,无需root。它是一个具有完整 Linux 环境的终端模拟器,apt install python您可以通过它安装python. apt list为您提供所有可用软件包的列表。
回答by Dipayan
Download PyDroid 3 from Playstore and if you like it buy the pro version. It costs around 2$ but you have all you need to do Python 3 programming
从 Playstore 下载 PyDroid 3,如果您喜欢它,请购买专业版。它的成本约为 2 美元,但您拥有进行 Python 3 编程所需的一切

