- Daniel Arbuckle's Mastering Python
- Daniel Arbuckle
- 207字
- 2021-07-02 21:09:34
Choosing a suitable version
There are currently two common varieties of Python in use. One of them is Python version 2.7, which is the final version of the Python 2 series. The Python community has promised to maintain version 2.7 independently, making it a very stable target for development. The other common version is Python 3, which at the time of writing this book is in version 3.6.
Python 3 is where the Python community is innovating. The releases are always backward compatible with earlier version 3 releases, but new exciting features are added regularly. During the change to version 3, the language in the libraries was changed in subtle ways, as you can see in the comparison of the following two code snippets:

In the preceding screenshot, on the left-hand side is Python 2 and on the right-hand side you see an equivalent code in Python 3. They are almost the same, but have differences, such as placement of parentheses, a few keywords, and a slightly different structure than the standard library. You're free to pick whichever version or versions you want for your own projects, but for this book, we'll be using Python version 3.
Now that we have picked the version, let's install it.
- Getting Started with Citrix XenApp? 7.6
- Redis入門(mén)指南(第3版)
- Python for Secret Agents:Volume II
- 控糖控脂健康餐
- 動(dòng)手玩轉(zhuǎn)Scratch3.0編程:人工智能科創(chuàng)教育指南
- JIRA 7 Administration Cookbook(Second Edition)
- 響應(yīng)式Web設(shè)計(jì):HTML5和CSS3實(shí)戰(zhàn)(第2版)
- C語(yǔ)言程序設(shè)計(jì)習(xí)題與實(shí)驗(yàn)指導(dǎo)
- 從零開(kāi)始學(xué)Android開(kāi)發(fā)
- 小程序從0到1:微信全棧工程師一本通
- Python Machine Learning Cookbook
- 計(jì)算機(jī)組裝與維護(hù)(第二版)
- Responsive Web Design with jQuery
- Visual FoxPro數(shù)據(jù)庫(kù)程序設(shè)計(jì)
- Practical XMPP