简体   繁体   English

如何将 python 转为 apk?

[英]How can i turn python to apk?

I am just a newbie on that things and I want to turn python to apk with android studio or whatever.我只是这方面的新手,我想用 android 工作室或其他任何东西将 python 转换为 apk。 I don't really need anything to complex, I just want to open my codes output gui (I used turtle) when I open the app.我真的不需要任何复杂的东西,我只想在打开应用程序时打开我的代码 output gui(我用的是 turtle)。 Nothing else, thats all.没有别的,仅此而已。 It is probably complex process so you can just give me where to look and learn if you can't explain it all in here.这可能是一个复杂的过程,所以如果你不能在这里解释所有内容,你可以告诉我在哪里查看和学习。 Thanks!谢谢!

Turtle is built around TKinter, which is a library for making desktop apps. Turtle 是围绕 TKinter 构建的,这是一个用于制作桌面应用程序的库。 There doesn't seem to be a way to run programs built in TKinter within Android without using some other app to run them.似乎没有办法在 Android 内运行 TKinter 中构建的程序而不使用其他一些应用程序来运行它们。 If you're ok with that, then you could use the solution suggested by this answer to run your code by pasting it into an app that can run Python code.如果您对此感到满意,那么您可以使用此答案建议的解决方案来运行您的代码,方法是将其粘贴到可以运行 Python 代码的应用程序中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM