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

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

主站蜘蛛池模板: 汾西县| 乌兰察布市| 洪江市| 新沂市| 旬邑县| 易门县| 宁阳县| 永兴县| 儋州市| 崇州市| 五大连池市| 房产| 广宗县| 遂溪县| 宝兴县| 西峡县| 珲春市| 团风县| 宜章县| 白朗县| 民丰县| 商水县| 宁津县| 和龙市| 榆中县| 江阴市| 元江| 西林县| 郴州市| 乌什县| 绥滨县| 渝北区| 白玉县| 昔阳县| 科技| 翼城县| 连平县| 依兰县| 玉树县| 桐柏县| 盐边县|