Python3 Getting Started notes (1)--windows installation and operation

Source: Internet
Author: User

Python's design philosophy is "elegant", "clear", "simple". That's one of the reasons I like Python.

Installation of Python:

1. Go to the official Python website to download the installation package

Clicking on the Downloads in the navigation bar will automatically identify your Windows system and you will see the installation package for Python3.6.2 and Python2.7.13 (32-bit system)

Note: Python3 later versions are no longer compatible with Python2, all if you are simply trying to learn new things, it is recommended to download the Python3 later version directly

If you are a windows64 bit or you want to download a different version of the installation package--click Downloads > Windows to download the version you need to install the package

Note: The 64-bit version may not be installed on a 32-bit system, but the 32-bit version can be installed on a 64-bit system

2. Install Python on your Windows operating system

I installed a 64-bit system installation package, so it appears as install Python3.6.2 (64-bit), please install according to the requirements of Windows system

Here is an example of a custom installation

Note: Check add python to environment variable so that you can run Python later at the Windows command prompt

If there are no special needs, select them all. In case of Use ~ o (^▽^) o Click Next to proceed to the next step

Select the installation directory will change, please modify the installation path according to your needs and then click Install to proceed to the next step

Installing ...

Installation is complete!!

Python's Run:

1.REPL (Read Eval Print Loop) environment operation

1.1 Using Idel to search for idle under Windows System (take W8 system as an example)

Use print () in Python syntax; Syntax for printing, this process enables the Read > Eval > Print > Loop

1.2 Using Windows command prompt cmd

Note: If the input is entered in the root directory, the Python return value below proves that you have successfully installed the Python to environment variable

2. Run the script--Create a. py file

2.1 Use the file below Idel

Use print ();

Ctrl+s files saved in. py format

Run the test.py file in cmd

You can also use the Code Editor for example: Notepad, notepapad++, SublimeText3, and so on

This concludes with a continuous update on Python's learning notes.

Hereby DECLARE: If you want to reprint please indicate the source, if there is doubt, please put forward in time to facilitate correction, thank you

Python3 Getting Started notes (1)--windows installation and operation

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.