【发布时间】:2021-03-11 02:38:15
【问题描述】:
我在python中做一个简单的空闲游戏,它的界面是用PySimplegui制作的,然后我想到了两个问题:
-
如何将我的 python 代码转换为可执行文件?
-
有什么方法可以让我的代码成为一个 Android 应用程序?如果是,怎么做?
【问题讨论】:
标签: python python-3.x pysimplegui
我在python中做一个简单的空闲游戏,它的界面是用PySimplegui制作的,然后我想到了两个问题:
如何将我的 python 代码转换为可执行文件?
有什么方法可以让我的代码成为一个 Android 应用程序?如果是,怎么做?
【问题讨论】:
标签: python python-3.x pysimplegui
【讨论】:
pyinstaller --onefile -w [your_script_name.py]
你也可以看这个视频,这个人解释得很好:https://youtu.be/UZX5kH72Yx4 这里还有 PyInstaller 手册:https://pyinstaller.readthedocs.io/en/stable/index.html
【讨论】: