py2exe 编译ico图标

#setup.py
from distutils.core import setup
import py2exe
setup(
     # targets to build
windows = [{"script":"EDI_VIEW.py", "icon_resources": [(1, "edi.ico")]} ]
)