官术网_书友最值得收藏!

Why are there two active versions?

I will quote the reason from the official Python website:

"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 pision) 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)."

You can read more about this topic at https://wiki.python.org/moin/Python2orPython3.

主站蜘蛛池模板: 深水埗区| 永寿县| 沙洋县| 岐山县| 武陟县| 兰州市| 策勒县| 定南县| 麻江县| 唐山市| 明光市| 罗定市| 镇康县| 卢龙县| 定州市| 葫芦岛市| 大田县| 普陀区| 佛坪县| 河北区| 涟水县| 伊春市| 辉南县| 红桥区| 澄城县| 南澳县| 景德镇市| 中方县| 岳西县| 磴口县| 石河子市| 曲麻莱县| 湟源县| 吴堡县| 象州县| 泰顺县| 遂川县| 和静县| 汶上县| 禹州市| 黄石市|