1. 程式人生 > >py2exe 打包的兩種方式

py2exe 打包的兩種方式

hello windows true brush sha set bin odin console

cmd模式

#!/usr/bin/python
#-*- coding: UTF-8 -*-
from distutils.core import setup
import py2exe
setup(console = [‘hello.py‘])

窗口模式

#!/usr/bin/python

#-*- coding: UTF-8 -*-
from distutils.core import setup
import py2exe
setup(windows= [‘hello.py‘])

  

py2exe 打包的兩種方式