总结:python2.x是遗产(过时),python3.x是现在和未来的语言

In summary : Python 2.x is legacy, Python 3.x is the present and future of the language

Python 3.0 was released in 2008. The final 2.x version 2.7 release came out in mid-2010, with a statement of

extended support for this end-of-life release. The 2.x branch will see no new major releases after that. 3.x is

under active development and has already seen over five years of stable releases, including version 3.3 in 2012,

3.4 in 2014, and 3.5 in 2015. This means that all recent standard library improvements, for example, are only

available by default in Python 3.x.

Guido van Rossum (the original creator of the Python language) decided to clean up Python 2.x properly, with less regard for backwards compatibility than is the case for new releases in the 2.x range. The most drastic improvement is the better Unicode support (with all text strings being Unicode by default) as well as saner bytes/Unicode separation.

Besides, several aspects of the core language (such as print and exec being statements, integers using floor division) have been adjusted to be easier for newcomers to learn and to be more consistent with the rest of the language, and old cruft has been removed (for example, all classes are now new-style, "range()" returns a memory efficient iterable, not a list as in 2.x).

最新文章

  1. spring快速入门(二)
  2. java工程笔记
  3. 开发板ping不通主机和虚拟机的看过来(转载)!
  4. cpp blog上面看到一哥们写的 下拉列表
  5. linux中mysql基本操作
  6. 【Mongodb】---关联表查询population
  7. bzoj1823
  8. 数据结构(脑洞题,BIT):COGS 2394. 比赛
  9. [置顶] 阅读Oracle官方文档指南
  10. SDL2源代码分析4:纹理(SDL_Texture)
  11. Luogu P3227 [HNOI2013]切糕 最小割
  12. C#利用SerialPort控件进行串口编程小记
  13. Comparison method violates its general contract 解决
  14. Bootstrap3基础 glyphicon 设置图标的颜色与大小
  15. Struts 2 初步入门(六)之处理结果类型
  16. Linux 安装MySql启动Can't locate Data/Dumper.pm in @INC
  17. Ubuntu 虚拟机安装几点细节整理
  18. Python学习笔记(十)—— 高级特性
  19. sql分割字符串
  20. C++基础知识:成员函数、对象拷贝、私有成员

热门文章

  1. 解决ueditor jquery javascript 取值问题
  2. Properties-转换流-打印流-序列化和反序列化-Commons-IO工具类
  3. java项目定时任务实现
  4. 单列表变量与字符串拆分的对照(SqlServer)
  5. 【UML】协作图Collaboration diagram(交互图)(转)
  6. UVA 11925 Generating Permutations 生成排列 (序列)
  7. 使用Timer组件制作左右飘动的窗体
  8. 2018.3.12 Leecode习题 给定一个整数数列,找出其中和为特定值的那两个数。
  9. SC || Git 相关知识
  10. 传输途径 ath9k层到硬件层