Py2exe下载及使用

1) install py2exe
 
根据相应的 python version及 系统位数(32 or 64)选择相应版本
2)
教程:

自我编程:
aim file: new.py
print "hello,world."
raw_input('')# in order to make the window to show more time
convert file: mysetup.py
from distutils.core import setup
import py2exe

setup(console=["new.py"])  #this is the aim file
命令行:
python mysetup.py py2exe
结果:
1)命令行: ,忽略以上警告
2) 文件夹:
 双击new.exe即可出现想要的效果。






posted @ 2017-10-04 01:12  Hello_to_Sa's_world  阅读(2328)  评论(0编辑  收藏  举报