"0 Basics teach you to learn Python" 02 first intimate contact with Python--helloworld

Source: Internet
Author: User

Currently,PythonThere are two major versions:2.7,3.6, two versions are incompatible. 2.7is the industrial version, the current large number of production environment is this version, because it has been running online, many can not be changed. A new start-up company will generally have3.0+.

according Python officially announced that 2020 years of abandonment, the official recommendation to 3.0+, we will directly use the 3.6.

In fact, there will be a version, the other version will be used. the difference between 2.7 and 3.0+ is very small, mainly including:

1,3.0+ support Chinese

2, core grammar adjustment, easier to learn

3, new features only added in the new 3.0+ .

Since this course is 0 basic and hands-on, Windows Environment as an example. As for Linux and MySQL, there will be presentations later.

The first step , in Enter www.python.org in the IE address bar , select "Downloads", and click "Python3.6.3" To download the Python3.6 installation package.

when the download is complete,

Step Two , click "python-3.6.3.exe" to install. Select "Custom Installation" and select " add Python installation directory to PATH"

Step three , in the Custom installation location, enter the D:\ python36", install Python in d:\ python36 directory


Fourth Step , enter Windows Start menu, select "command line Prompt", enter "python–version", "Python3.6.3" appears,indicating the installation is successful.


Fifth Step , enter the Windows Start Menu ", find"Python3.6", click"IDLE (python GUI)"to open the Python development environment.



Sixth Step , enter print (' Hello World ') in the back of >>>, and the Hello World appears .




Congratulations! At this point, the successful completion of the Python installation and environment configuration, and implement their own first Python program, is not very excited, the next section we talk about variables and data types.


"0 Basics teach you to learn Python" 02 first intimate contact with Python--helloworld

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.