How can I write an Android app in Python?
This question already has an answer here:
A few points: first, there's actually a lot more to an APK than just zipping up bytecode (eg application manifest, resources, etc.), so it doesn't really make sense to talk about "converting" a Python file to an APK.
Secondly, I wouldn't encourage this. I'd strongly encourage using Xamarin Forms, Cordova, Java, or Xamarin.Android instead. The advantage of Xamarin Forms or Cordova is that you can create cross-platform applications with a single code-base. In terms of platform-specific development, Xamarin.Android and Java both have very good tool support (through Android Studio and Visual Studio).
With that said, there's an answer here you can use if you insist on using Python. There are a number of frameworks available as well, such as QPython and Kivy (which is designed for cross-platform apps, analogous to Xamarin Forms for C# and Cordova for JavaScript/html5).
链接地址: http://www.djcxy.com/p/91178.html