这是 Python 2.7 的第一个正式版本。这也是 Python 计划中 2.x 的最后的主要版本。
该版本包含很多 Python 3.1 中的新特性,主要的提升包括如下几个方面:
- An ordered dictionary type
- New unittest features including test skipping and new assert methods
- A much faster io module
- Automatic numbering of fields in the str.format() method
- Float repr improvements backported from 3.x
- Tile support for Tkinter
- A backport of the memoryview object from 3.x
- Set literals
- Set and dictionary comprehensions
- Dictionary views
- New syntax for nested with statements
- The sysconfig module
下载地址:
最新评论(3)
装3.x的太蛋疼了. 手动给N多脚本改语法错误....
前后不兼容 好麻烦……