Some version analysis of Python

Source: Internet
Author: User

Python 2.6-october 1, 2008
Python 2.6.1-october 1, 2008
Python 2.6.6-october 1, 2008
Python 3.0-december 3, 2008
Python 2.7-july 3, #目前业内主流使用的工业版本依然是2.7

print "Hello World" #in 2.x
Print ("Hello World") #in 3.x


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

Summary: Python2.x is the legacy, python3.x is now and the future of the language

Python 3.0 was released released in 2008. The final 2.x version 2.7 release came out in mid-2010,
With a statement declaration of extended Extended support supports for this end-of-life release. The 2.x branch Branch would see no new major significant releases after that.
3.x is under active development are actively developing and has already have seen over more than five years of stable stable releases version, including including VE Rsion version 3.3 in 2012,

3.4 In, and 3.5 in 2015. This means means that all recent recent standard library improvements upgrade/improvement, for example example, is only

Available available by default in Python 3.x.

2.x = default encoding =assic = Not supported
3.x = default encoding =unicode = Default Support Chinese

Guido van Rossum (the original creator of the Python language) decided decided to clear up the Python 2.x properly appropriate, with less r Egard regardless of the for backwards backwards compatibility compatible than is the case for new releases in the 2.x range. The most drastic radical improvement is the better better Unicode (is an encoding) support for Chinese (with all text character strings being Unicode by DEFA Ult) as well as saner bytes/unicode separation.

Besides in addition, several several aspects aspects of the core core language (such as print and exec being statements, integers using floor divis ION) has been adjusted tuned to easier simpler for newcomers novice to learn and to is more consistent continuous with the rest of the LAN Guage, and old cruft have been removed (for example, all classes is now New-style, "range ()" Returns a memory efficient it Erable, not a list as in 2.x).

Python 2 vs 3
1. Chinese is supported by default
2. Incompatible 2.x
3. Core grammar adjustment, easier to learn
4. The new feature is only available on 3.x

Some version analysis of Python

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.