"Beginner's Tutorial" Install Python on your computer and write the first program

Source: Internet
Author: User
Tags windows x86

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.