300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > 零基础自学python的建议-零基础学python是学2还是3好

零基础自学python的建议-零基础学python是学2还是3好

时间:2023-02-05 08:58:00

相关推荐

零基础自学python的建议-零基础学python是学2还是3好

In November , it was announced that Python 2.7 would be supported until , and reaffirmed that there would be no 2.8 release as users were expected to move to Python 3.4+ as soon as possible

百度翻译:今年11月宣布,Python 2.7将在之前得到支持,并重申不会有2.8版本的发布,因为用户希望尽快移动到Python 3.4以上。

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

Python 3.0 was released in . The final 2.x version 2.7 release came out in mid-, 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 ,

3.4 in , and 3.5 in . 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).

百度翻译:

总之:Python 2是遗留的,Python 3是语言的现在和未来。

Python 3在发布。最后的2×2.7版本发布了年中,与声明

延长对这一报废版本的支持。在这之后,2 x分支不会看到新的主要版本。3 x是

在积极的发展中,已经看到了五年的稳定版本,包括版3.3版,

3.4在,在3.5。这意味着,所有最近的标准库的改进,例如,只

默认使用Python 3。

Guido van Rossum(Python语言的创造者)决定清理Python 2。x是正确的,不考虑向后兼容性比在2新版本的情况下,X系列。最激烈的改进是更好的支持Unicode(所有文本字符串是Unicode默认)以及理智的字节/ Unicode分离。

此外,在语言的核心的几个方面(如打印和exec被陈述,整数使用地板处)已被调整到适合新人学习容易,要与其他的语言更加一致,老的那些东西已被删除(例如,所有的类都是现在新型的、“range()”返回一个高效的迭代,不列为2 x)。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。