Python是一种动态的脚本语言。具体的我就不多介绍了,可以参考www.python.org. Python是Open Source的,在www.python.org可以下载到最新的2.5版的源代码。源代码链接在这里:Python
2.5
下载下来之后直接解压缩可以看到如下的目录结构:
Demo |
Demo用的代码,主要用来展示Python的一些应用 |
Doc |
Python的UserManual。Latex格式的 |
Grammar |
语法文件。这个语法文件会在Python运行的时候被用来分析Python源代码 |
Include |
Python Include用的头文件 |
Lib |
Python的库文件 |
Mac |
For Mac |
Misc |
如字面意思,一些不适合放在其他地方的文件就放在这里了 |
Modules |
Python的一些Built-in Module的实现 |
Objects |
Python的基本内部对象的实现,比如class/list等等 |
Parser |
Python的词法分析和语法分析 |
PC |
比较老的Windows和OS2的Port的项目以及Port用到的一些公用文件放在这里,PCBuild和PCBuild8都要用到这个目录的内容 |
PCBuild |
Python用于VS 2003的Project文件 |
PCbuild8 |
Python用于VS 2005的Project文件 |
Python |
Python主程序代码 |
RISCOS |
Python的RISC OS Port |
Tools |
Build和Extend Python所需的工具 |
在Unix/Linux/Cywin下面可以直接键入:
./configure
make install
Windows用VC Build的话,可以直接打开PCBuild/PCBuild8下面相应的Solution来Build。直接Build的话会出不少错误,有必要做一些调整:
- 不是所有的Project都可以立刻Build,部分Project由于对第三方库有依赖,一般情况下可以直接跳过Build这些Project,而只Build核心的Python代码。在Configuration Manager里面直接Exclude就可以。必需的Project是:make_buildinfo, make_versioninfo, python, pythoncore
- PythoncoreProject少了一个文件,需要手动把Modules/_typesmodule.c加入到工程中去,再Build
今天就写到这里,下一篇我会通过跟踪执行一个最简单的Python代码来介绍Python执行的流程。
分享到:
相关推荐
Python 实例 - 根据IP地址查对应的地理信息 Python源码Python 实例 - 根据IP地址查对应的地理信息 Python源码Python 实例 - 根据IP地址查对应的地理信息 Python源码Python 实例 - 根据IP地址查对应的地理信息 Python...
Python 实例 - personal-qrcode个性二维码 Python源码Python 实例 - personal-qrcode个性二维码 Python源码Python 实例 - personal-qrcode个性二维码 Python源码Python 实例 - personal-qrcode个性二维码 Python源码...
Python 使用Flask-SQLAlchemy实现数据的多对关系 Python源码Python 使用Flask-SQLAlchemy实现数据的多对关系 Python源码Python 使用Flask-SQLAlchemy实现数据的多对关系 Python源码Python 使用Flask-SQLAlchemy实现...
Practical-Machine-Learning-with-Python-A-Problem-Solver-s-Guide-to-Building-Real-World-Intelligent-Systems.pdf
Python 游戏源码 - pygame_games(13个) Python源码Python 游戏源码 - pygame_games(13个) Python源码Python 游戏源码 - pygame_games(13个) Python源码Python 游戏源码 - pygame_games(13个) Python源码...
Python 游戏源码 - 飞鸟小游戏 Python源码Python 游戏源码 - 飞鸟小游戏 Python源码Python 游戏源码 - 飞鸟小游戏 Python源码Python 游戏源码 - 飞鸟小游戏 Python源码Python 游戏源码 - 飞鸟小游戏 Python源码...
Python 实例 - 音乐播放器 Python源码Python 实例 - 音乐播放器 Python源码Python 实例 - 音乐播放器 Python源码Python 实例 - 音乐播放器 Python源码Python 实例 - 音乐播放器 Python源码Python 实例 - 音乐播放器 ...
Python源码游戏源码-09 五子棋.rar
Python源码游戏源码-11 象棋.rar
Python源码游戏源码-02 飞鸟.rar
Python源码自动办公-19 用Python分析文本数据的词频.rar
Python源码游戏源码-07 坦克大战.rar
Python源码游戏源码-04 开心消消乐.rar
Python源码游戏源码-06 贪吃蛇游戏项目源码.rar
Python 实例 - 查票抢票 Python源码Python 实例 - 查票抢票 Python源码Python 实例 - 查票抢票 Python源码Python 实例 - 查票抢票 Python源码Python 实例 - 查票抢票 Python源码Python 实例 - 查票抢票 Python源码...
Python 游戏源码 - 九宫格 Python源码Python 游戏源码 - 九宫格 Python源码Python 游戏源码 - 九宫格 Python源码Python 游戏源码 - 九宫格 Python源码Python 游戏源码 - 九宫格 Python源码Python 游戏源码 - 九宫格 ...
Python 实例 - 贺卡 Python源码Python 实例 - 贺卡 Python源码Python 实例 - 贺卡 Python源码Python 实例 - 贺卡 Python源码Python 实例 - 贺卡 Python源码Python 实例 - 贺卡 Python源码Python 实例 - 贺卡 Python...
Python源码游戏源码-10 植物大战僵尸.rar
Python源码游戏源码-05 贪吃蛇 版本2.rar
Python源码游戏源码-03 九宫格.rar