如何调用来自Android的Python脚本脚本、Android、Python

由网友(?那段情、已沉在心里〃)分享简介:是否有可能在Android中调用Python脚本?我有在Python 2.7已经有一些剧本,我想提醒的是安卓(该脚本创建文件,并填充数据)。为了更具体的我想在手机上执行Python脚本,该脚本连接到一些网站,下载数据,并做一些情报,然后创建新的数据文件(JSON的电话)。Is it possible in Andro...

是否有可能在Android中调用Python脚本?我有在Python 2.7已经有一些剧本,我想提醒的是安卓(该脚本创建文件,并填充数据)。为了更具体的我想在手机上执行Python脚本,该脚本连接到一些网站,下载数据,并做一些情报,然后创建新的数据文件(JSON的电话)。

Is it possible in Android to call Python script? I have already some scripts in Python 2.7 and I want to call that from Android(that script create file and fills with data). To be more specific I am trying to execute Python script on phone, that script connects to some site, download data and do some intelligence and then create file with new data(json on phone).

推荐答案

通过Google的 SL4A - 项目,它可能具有的Python脚本,在Android手机上运行。

With googles SL4A-project, it's possible to have Python-scripts execute on your Android phone.

在Android API的零部件都包裹的Python(但不是全部)

Parts of the Android API are wrapped for Python (but not all of it)

您可以embed Python的脚本在您的应用程序(听起来像你的方法)。

You can embed Python-scripts in your application (sounds like your approach).

阅读全文

相关推荐

最新文章