| ²é¿´: 85 | »Ø¸´: 0 | ||
| µ±Ç°Ö÷ÌâÒѾ´æµµ¡£ | ||
jove1782ľ³æ (ÕýʽдÊÖ)
|
[×ÊÔ´]
תÌùÒ»¸öpy2exeµÄʹÓ÷½·¨£¬Ï£ÍûÄܸø´ó¼Ò°ïÖú¡£
|
|
|
???????????????????????????????? py2exe ?W?: http://starship.python.net/crew/theller/py2exe/ py2exe ???? Python script ?D?Q???? windows ?????????(???????~???b Python)?? exe ?n(?????????????????????)???????????????l?????f,??????? ??¡Â??: ???O????? Python script ???? "hello.py",??^??? setup.py ?? script ???a?????§«n: from distutils.core import setup import py2exe setup(console=["hello.py"]) ?? setup(console=["..."]) ?§Ö?n????Q????a?? exe ?? script ?n??.????? command line ????§Õ? script: setup.py py2exe ?????a??? dist ??????????,?????????????§«n?????????n??,?????????l??. ???? setup.py ??????a????? console ???,????a??????? console ???????,?? "console" ??Q?? "windows": setup(windows=["hello.py"]) ??????a?????????§«n,???????? script ?n???? list ??????o setup() ????: setup(console=["hello.py", "hello1.py", "hello2.py"]) ???????r?a?? console ?? windows ???: setup(console=["hello.py", "hello1.py"], windows=["hello2.py"]) ???¨®???§¦r???????§»???n??,?????O???n,???????D?n,??^ setup() ?? data_files ????,??????@§»?~???n??????l?????§³??????????? (?????, [????n 1, ????n 2...????n n]) ?¦Ã?? tuple,???b?? list ???o data_files????????: setup(console=["hello.py", "hello1.py"], windows=["hello2.py"], data_files=[("img", [r"d:\documents\matrix.jpg", r"d:\documents\Batman.jpg"]), ("xml", [r"D:\tmp\mypaint.xml", r"D:\tmp\mypuzzle.xml", r"D:\tmp\mypuzzle1.xml"])]) ?a?????? dist ????,???????? img ??,??? matrix.jpg ?? batman.jpg ????n??,??? xml ??,??????? xml ?n???? ???? py2exe ???????b?? windows service ?? COM server ?????,?????????????????§à??????? Python ?? GUI toolkit - Tkinter ??????????,?????b?????? 2MB ??? Tkinter runtime,??????g?????S??...??,?l???@?N??????????e?????????????? Python ???,????c??o???^??! ??????????? py2exe ????W?, Using py2exe §³????????P?,??¦Ë Python ????????~ [ Last edited by csfn on 2008-12-29 at 19:54 ] |
» ²ÂÄãϲ»¶
299Çóµ÷¼Á
ÒѾÓÐ8È˻ظ´
Ò»Ö¾Ô¸±±¾©Àí¹¤´óѧ±¾¿Æ211²ÄÁϹ¤³Ì294Çóµ÷¼Á
ÒѾÓÐ6È˻ظ´
300Çóµ÷¼Á£¬²ÄÁÏ¿ÆÑ§Ó¢Ò»Êý¶þ
ÒѾÓÐ8È˻ظ´
ÕÐÊÕÉúÎïѧ/ϸ°ûÉúÎïѧµ÷¼Á
ÒѾÓÐ5È˻ظ´
070305¸ß·Ö×Ó»¯Ñ§ÓëÎïÀí 304·ÖÇóµ÷¼Á
ÒѾÓÐ7È˻ظ´
289Çóµ÷¼Á
ÒѾÓÐ13È˻ظ´
Ò»Ö¾Ô¸¹þ¶û±õ¹¤Òµ´óѧ²ÄÁÏÓ뻯¹¤·½Ïò336·Ö
ÒѾÓÐ9È˻ظ´
081200-11408-276ѧ˶Çóµ÷¼Á
ÒѾÓÐ6È˻ظ´
µ÷¼ÁÇóԺУÕÐÊÕ
ÒѾÓÐ5È˻ظ´
µ÷¼Á310
ÒѾÓÐ8È˻ظ´














»Ø¸´´ËÂ¥
6