Welcome to the world of Python.
1. There are Python 2 and Python 32 versions, which one should I use?
If the book is about 2, download 2; If the book is about 3, download 3.
Python 3 is recommended, but using 2 is also possible.
2. Download Python.
To pick a version here, be aware that Windows XP can only install versions that are below 3.4 and 3.4.
https://www.python.org/downloads/
Select a version, click to enter, there is a download list at the bottom of the page:
The operating system is 32-bit, under this:Windows x86 executable (or MSI) installer
The operating system is 64-bit, under this:Windows x86-64 executable (or MSI) installer
Note: The download list cannot be found on the 3.4. 5 page, please go to the 3.4.4 page. 3.3. 6, 3.2. 6, 3.1. 5 is also the case.
3. Install Python.
Add Python.exe to Path is selected in the options, in addition to the default.
The installation interface for Python 3.5 has been changed, where the Add Python 3.5 to Path is selected and then press Install Now.
After installation, the Start menu will have these icons:
IDLE: This is the IDE, with this programming.
Python 3.5: Interactive mode, one line statement execution line. cannot be modified, so it is not suitable for learning programming.
Python 3.5 Manuals: Self-documenting, CHM format.
Python 3.5 Module Docs: Auto-generated modules documentation.
4, start programming.
Open idle and this interface appears:
Click on the File->new File in the menu, a new interface will appear, where the program is written:
Once you're done, save as a. py file and press F5 to run to see the results:
5, the next time programming, the right mouse button click. py file, you can open the file directly with idle.
Note:
If this prompt cannot be installed, or the error code 0x80240017.
This is required to install Windows 7 SP1, download an install on it.
"Beginner's Tutorial" Install Python on your computer and write the first program