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‘])
原文:http://www.cnblogs.com/hyh123/p/6962108.html