Python论坛  - 讨论区

标题:[python-chinese] 答复: 请教py2exe的用法.

2006年11月09日 星期四 14:30

王明 mingwang在iflytek.com
星期四 十一月 9 14:30:15 HKT 2006

ÔÚwindowsÏÂ(¿ØÖÆ̨³ÌÐò)ÕâÑù£¬Ð´¸ösetup.pyÈçÏÂ:

-----------------

from distutils.core import setup

import py2exe

 

setup(

    # The first three parameters are not required, if at least a

    # 'version' is given, then a versioninfo resource is built from

    # them and added to the executables.

    version = "0.5.0",

    description = "py2exe sample script",

    name = "py2exe samples",

 

    # targets to build

    console = ["sample.py"],

)

ÔÙÔÚÃüÁîÐÐÏÂÔËÐУº python setup.py py2exe¼´¿É

 

-----ÓʼþÔ­¼þ-----
·¢¼þÈË: python-chinese-bounces在lists.python.cn [mailto:python-chinese-bounces在lists.python.cn] ´ú±í LI WeiMin (SCC-Test)
·¢ËÍʱ¼ä: 2006Äê11ÔÂ9ÈÕ 13:39
ÊÕ¼þÈË: python-chinese在lists.python.cn
Ö÷Ìâ: [python-chinese] Çë½Ìpy2exeµÄÓ÷¨£®

 

ÏÂÔØÁˣУ٣²£Å£Ø£Å£¬¿É²»ÖªÈçºÎÓõģ¬ÏÖÔÚû·¨ÉÏÍø£¬Íû·½±ãµÄÍøÓѸæÖª£¬ÎÒÖ»ÓÐÒ»¸ö£Ð£ÙÎļþ£ºsample.pyÏ£ÍûÉú³É.exeµÄ¡«

 

лл

-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20061109/48b599d7/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号