Which version should I choose to learn Python?
- Python 2.x Python 3.x
- Choice of tutorial
- choice of system
- Other Windows versions
- Summarize
Python 2.x Python 3.x
Version 3.0 of Python, often referred to as Python 3000, or Py3k for short. This is a major upgrade from earlier versions of Python. In order not to introduce too much burden, Python 3.0 was not designed with backward compatibility in mind.
So Python 2.x and Python 3.x are probably two languages.
The first is the choice of Python 2.x and Python 3.x, if your future company is still using 2.x, then you can start learning Python 2.x. It is officially announced that on January 1, 2020, the update of Python 2 will be stopped. Python 2.7 was identified as the last Python 2.x release.
Choice of tutorial
After deciding whether to choose 2.x or 3.x, choose according to the tutorial, and choose which version of Python you choose for the book or online course.
Take rookie programming as an example, the tutorial is Python 3.6, then you can download this version, or the latest version of Python 3.6.15.
choice of system
Take Windows as an example, first check what system your computer is and whether it supports 64-bit
If it is Windows 10 or above, you can directly enter CMD through the command prompt : Python3
It will directly jump to the app store to download, the store version is as follows:
They are Python 3.7.9, Python 3.8.10, Python 3.9.9, Python 3.10.1
There is basically a stable version in the store, and there is no problem in using it.
Other Windows systems
For Windows 10 and below, Windows 7, you can choose Python 3.9 or below, 3.7 or 3.8 stable version (Python 3.7.9, Python 3.8.10), and then select the corresponding 32-bit or 64-bit package file.
Below Windows 7, Windows XP can only choose Python 2.x version, then you can choose Python 2.7.10, choose the corresponding 32-bit or 64-bit package file.
macOS Monterey comes with Python 2.7, the new system has been deleted.
Summarize
The above are three choices for the Python version
One, company, job or open source project requirements
Second, the computer system version requirements
Third, the course requirements
According to these three directions, you can basically determine which version you choose. There is a big difference between 2.x and 3.x. The higher version in 3.x is compatible with the lower version, and there is little difference between the 3.x versions.
After determining the Python version, you can install various libraries based on this version, such as the Pygame library.
Don’t install too many different Python versions on a beginner’s computer, and don’t upgrade Python versions at will.
Finally, about the choice of Python IDE, you can read this: Python IDE for Beginners
Latest Programming News and Information | GeekBar