python脚本使用py2exe生成可执行文件

要使用py2exe,首先要编写一个编译脚本,然后通过Python运行编译脚本即可将其他的脚本编译成可执行文件。以下实例是将要编译成可执行文件的脚本。 #file: MessageBox.py import win32api import win32con win32api.MessageBox(0, 'hi!', 'Python', win32con.MB_OK) 以下实例是编译脚本。
相关文章
相关标签/搜索