[Guys],
there is a good news that the android has had the capability for running python script.
On the Internet, the materials about this environment construction may be sufficient, but those are for the old version of the "SL4A".
Now, I will show you how to construct the python development and running environment for android.
That is the little case. If you are able to follow these steps below, you will run the python on android in few minutes.
[Steps]
(1)You need [Download] two files for your android.
a. "sl4a_r5.apk" , and you may find it in this page:http://code.google.com/p/android-scripting/downloads/list
b. "PythonForAndroid_r4.apk"
, and this one is also in the page :http://code.google.com/p/android-scripting/downloads/list
(2)Push them into your android.
(3)Be sure that your android has been access to the Internet. If you wann accomplish this task soon, you may use the wifi.
[Pay attention to]This step is so significant that if you miss it, your cellphone may never run python. What's more, this is the exact distinction between the new
one and the old version.
(4)Under your android, click the apk file called "sl4a_r5" to install it.
(5)Click the apk documentation called "PythonForAndroid_r4"
to install it.
(6)Now, if everything goes right, you may have seen these two new icons on your android screen.
(7)But now, you have not installed the python interpret successfully. Then you need click the python icon to run it.
(8)Press the "install" button.
(9)Automatically, this program downloads the documentations which are essential for python.
(10)After that, you are able to run the python script on your android!
-----------------------------------------------------------------------------------------------------------------------------
[But you know], that is anightmare to edit the code on the cellphone. So what we can do?
[Propose]:
You may write the code on your PC and run it on android.
You know, there is the highlight,auto indent,debugand
automatic matching of parentheses............ So why we not accept these helpful functions?
[You can] edit your python code on your PC. You may use your favorite emacs or vim. And then the thing you just need to do is pushing your code file into the "sl4a/scripts/" folder.
[After that] when you run the sl4a, your code documentation will be displayed in the front of you. [You just run it].
-------------------------------------------------------------------------------------------------------------------------------
Okay, [Python is wonderful]!
分享到:
相关推荐
Django + python + mysql的在线考试系统源码 Django + python + mysql的在线考试系统源码 Django + python + mysql的在线考试系统源码 Django + python + mysql的在线考试系统源码 Django + python + mysql的...
主要介绍了详解基于Android的Appium+Python自动化脚本编写,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
git下载的 python4delphi,专门修改为支持delphi7+python35,其他版本的pyhon请修改ython4delphi-master\PythonForDelphi\Components\Sources\Core\Definition.Inc 编译文件即可
appium+python环境配置教程,包含各种工具报下载路劲,希望有助于大家
资源名字:基于Java+Android+Python的手机端办公自动化OA系统设计与实现(源码+文档)_Java__手机端办公自动化OA系统.zip资源内容:项目全套源码+完整文档源码说明: 全部项目源码都是经过测试校正后百分百成功运行...
android studio+python鲜花识别代码
该文档包含三个ppt文件,分别为Gurobi入门,Gurobi+Python知识点讲解,Gurobi+Python实战,Gurobi入门肯定没有问题,讲解详细,内附代码贴图,有需要的小伙伴可以尽情下载。
mysql+python的学生选课管理系统.zip
写在前面:该插件可以直接在notepad++插件管理器中安装,如果安装完之后,运行出现: Unknown exception和python script plugin did not accept the script的报错提示,一般在window7/8/10 64位系统报错。...
为各种会议培训的组织者、参与者提供满足其基本需求、较为轻量的辅助功能。通过会议考勤、会议日程、会议记录、会议文件四个子系统,满足用户在进行开会和培训时的常用、基本的需求。根据不同功能需求总体可划分为...
An auto-indenter for Python source files. It just looks for one of the appropriate keywords at the start of the line and indents one level in on the next line.
Complex+Network+Analysis+in+Python Python复杂网络分析
包括多种语言的API文档和中文手册,有Apache2,PHP5中文手册,Python3手册,WordPress,JDK1.6版本的API,Opencv中文参考手册,AndroidAPI文档等
Pycharm+Django+Python+MySQL开发 网站后以管理系统。
Appium+python实现Android自动化
本毕业设计旨在将各类服饰信息化的基础上,实现高效的服饰挑选和分类管理,目标用户群体为对服饰有个性化需求的人们,本系统开发的是Android客户端和web管理端,具有移动户用端随时随身性、互动性的优势,通过采集...
wincvs+Python-2.2.1,tcl自己去下
官方英文版的GUI+Programming+with+Python+QT+Edition
此Python+Django+VUE后台管理系统。包括的功能是用户管理----用户组管理的 增删该查功能。其中mysql数据库表的信息user_group.sql,也放到项目文件夹里了。