Kids learn python (1): Python Introduction and programming environment setup

Source: Internet
Author: User

I. Introduction of Python

Not dead Java, Immortal C + +, upstart python.

Python (United Kingdom pronunciation:/?pa?θ?n/American pronunciation:/?pa?θɑ?n/) is an object-oriented, interpreted computer programming language, invented by Dutch Guido van Rossum in 1989, and the first public offering was released in 1991.

Python is purely free software, and the Python source code also follows the GPL (GNU general public License) agreement.

Python syntax is simple and clear, and one of the features is to force whitespace (white space) to be indented as a statement.

Python has a rich and powerful library. It is often nicknamed the glue language and is able to easily connect a variety of modules made in other languages, especially in C + +. A common application scenario is to use Python to quickly build a prototype of a program (sometimes even the final interface of the program) and then rewrite it in a more appropriate language, such as a graphics rendering module in a 3D game, with a particularly high performance requirement, and can be rewritten in C + + with a specially requested part. It is then encapsulated as an extension class library that Python can call. It is important to note that you may need to consider platform issues when you use the Extended class library, and some may not provide cross-platform implementations.

The difference between interpretive language and compiled language

Compiled language before the program executes, there is a separate compilation process to translate the program into machine language, and later when the program is executed, it is no longer necessary to translate.
The interpreted language, which translates the program into machine language at run time, is slower than the compiled language.
C + + is a compiled language, and Java,python, etc. are all interpreted languages.

Although the Java program has a compilation process before it runs, it does not compile the program into a machine language, but compiles it into bytecode (which can be understood as an intermediate language).
At run time, the JVM translates the bytecode into machine language.

Third, Python version

There are currently two fluent Python versions, Python 2 and Python 3.
Python 3 is not fully compatible with Python 2. But the difference is not big, casually learn one can.
Note that if you learn Python 2, you need to learn the Python 2.7.X version (here 2 is the big version, 7 is the medium version, and x refers to any iteration), such as 2.7.10 or 2.7.13.
If you learn Python 3, learn the Python 3.6.X version, such as 3.6.3.

Iv. python installation steps

1 Open the CMD command-line window and execute the PYTHON-V (note, is the uppercase V) command.
If you are prompted for version information, the Python environment already has, the following steps will not have to look.
If no version information is indicated, there is no Python environment. You need to follow these steps to install.

2 Go to https://www.python.org/downloads/download the latest version of Python

3 Click on the downloaded Python-3.6.1-amd64.exe, go to the installation screen, tick "ADD Python 3.6 to PATH" and select "Customize Installation"


4 Next


5 Create a folder named Python under the F-Packing directory and select the installation path as F:\python,install


6 Close


7 checking the python environment variable, which has been automatically added to the path


8 test If the Python environment is installed successfully
Open cmd Command Line window, enter python-v (note V is uppercase), display version number indicates successful installation



Kids learn python (1): Python Introduction and programming environment setup

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.