zoukankan      html  css  js  c++  java
  • day03_02 Python版本的选择

    总结: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). 

  • 相关阅读:
    第八章 路由器交换机及其操作系统的介绍
    k-Tree DP计数
    Drop Voicing 最长升序
    高精度
    1196D2
    C
    POJ 3974 马拉车
    2020.8.1第二十六天
    2020.7.31第二十五天
    每日日报
  • 原文地址:https://www.cnblogs.com/darkalex001/p/7486481.html
Copyright © 2011-2022 走看看