|
查看: 1061|回复: 5
|
有谁会 python code
[复制链接]
|
|
|
有谁可以教我compile python code 吗? 急急急!
我试了好多次 都不能,有 tutorial 吗?谢谢! |
|
|
|
|
|
|
|
|
|
|
发表于 12-9-2008 09:44 PM
|
显示全部楼层
原帖由 番茄八仔 于 12-9-2008 12:50 PM 发表 
有谁可以教我compile python code 吗? 急急急!
我试了好多次 都不能,有 tutorial 吗?谢谢!
下载python2.5, 就可以compile了. |
|
|
|
|
|
|
|
|
|
|
发表于 13-9-2008 07:14 PM
|
显示全部楼层
在Linux里打开Terminal:
$ python helloworld.py
就可以了。 |
|
|
|
|
|
|
|
|
|
|
发表于 13-9-2008 08:54 PM
|
显示全部楼层
python 是interpretive language,基本上不用compile。。
但若要compile 去 python bytecode .pyc 可以import python_compile module... |
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 15-9-2008 12:23 AM
|
显示全部楼层
回复 4# tensaix2j 的帖子
我是用window xp 的,我想compile 了,然后有 .exe,我已经下载python 2.5 了,只可以compile 简单的 hello.py, 是不是compile 都需要 setup.py 的呢?
我用的 setup.py 是
from distutils.core import setup
import py2exe
setup(console=[mygame.py']
但是有error : Cannot find the specified path: ......//dist//library.zip//lib//*'*
少了什么步骤呢?
谢谢!
[ 本帖最后由 番茄八仔 于 15-9-2008 01:02 PM 编辑 ] |
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 15-9-2008 10:45 AM
|
显示全部楼层
回复 5# 番茄八仔 的帖子
|
正确来说我想distribute this game....所以需要compile 去 .exe |
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|