问题描述
是否有可能建立一个APK使用Python为Android,这并不需要Python的为Android在那里,也就是说,它包含的Python?如果是这样,怎么样?
Is it possible to build an APK using Python for Android that doesn't need Python for Android to be there, i.e. it includes Python? If so, how?
推荐答案
我相信这是你在找什么:的
I believe this is what you are looking for: https://code.google.com/p/android-python27/
这将蟒蛇嵌入到你的APK。在第一次发射,它会给你一个对话框,说明它是安装。这部分将沿着安装脚本与Python的集成版本。您还可以嵌入不同版本的Python的,如果你有一个preference(2.6,2.7,和放大器; 3.2)。
This will embed python into your apk. On first launch it will give you a dialog stating it is "installing". This part will install your script along with an integrated version of python. You are also able to embed different versions of python if you have a preference (2.6, 2.7, & 3.2).
这篇关于Python的为Android APK无依赖性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!