当前第2页 返回上一页
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | import py2exe
from distutils.core import setup
includes = [ 'encoding' , 'encodings.*' ]
options = { 'py2exe' :
{ 'compressed' : 1 ,
'optimize' : 2 ,
'ascii' : 1 ,
'includes' : includes,
'bundle_files' : 1 ,
'dll_excludes' : [ 'MSVCP90.dll' ],
}
}
setup(version = '1.0.0' ,
description = 'search file' ,
name = 'search file' ,
options = options,
zipfile = None ,
windows = [{ 'script' : 'core\\tool.py' ,
'icon_resources' : [( 1 , 'resource\\icon.ico' )],
}],
)
|
以上就是Python中py2exe打包工具的用法详解的详细内容,更多文章请关注木庄网络博客!!
返回前面的内容
相关阅读 >>
Python中print与return区别
Python中基本的数据结构--列表
Python数据结构与算法之链表定义的使用详解
Python基本运算符号有哪些
初学Python的学习心得
Python矩阵中常见运算的示例代码分享
Python 批量合并多个txt文件的实例讲解
Python如何批量处理excel数据?
Python怎么下载pip
Python怎么查看变量类型
更多相关阅读请进入《Python》频道 >>
人民邮电出版社
python入门书籍,非常畅销,超高好评,python官方公认好书。
转载请注明出处:木庄网络博客 » Python中py2exe打包工具的用法详解