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

Python 2 versus Python 3

At the time of writing this, Python 2 and Python 3 are both actively used; Python 2 is still taught in many tutorials, and a large number of forum discussions and blog posts on Python refer to Python 2. All this can make it confusing for beginners to decide which version to learn first. The reason for the confusion is that the adoption rate of Python 3 was relatively slow so Python 2 has been maintained longer than planned. However, Python 2 is set to be discontinued in 2020, which means that the core team that develops Python will no longer make updates to Python 2.

As Python 2 is on its way out, I will use Python 3 for this book. Despite a small number of strong opinions either way, Python 3 really isn't all that different. There are some minor syntactical and functional differences, but it's easy to learn them if you find yourself needing to use Python 2. (I've included some links in the reference material about these differences.)

主站蜘蛛池模板: 中西区| 嘉义市| 凌云县| 二手房| 京山县| 澄城县| 吉木萨尔县| 两当县| 大城县| 芜湖市| 东安县| 宣武区| 游戏| 彰化市| 灵石县| 阳原县| 扎兰屯市| 乌拉特中旗| 武强县| 安乡县| 伽师县| 宁强县| 新和县| 保康县| 招远市| 鸡西市| 荣昌县| 邳州市| 巩留县| 荣成市| 当阳市| 彰化县| 桐乡市| 蕉岭县| 连山| 梁山县| 泽普县| 怀集县| 新余市| 武功县| 石景山区|