What is Python? Fast read this article to get you started with Python

Source: Internet
Author: User
PythonThis language is a relatively young language, the language was born in 1989, by Guido van Rossum invented, is the youngest Gen Y, and in a short period of 2 years after the official public release in 1991.

This article, for everyone to introduce,python What she is , how we get started , how to learn python.

People who have studied the language know thatPython is not as cumbersome and logical as other languages, and she is simple enough to write Java,javascript and C in dozens of lines or even hundreds of lines of language in just more than 10 lines of code. She is also very graceful, even if only a beginner, as long as you have a little bit of programming language Logic Foundation, you will be able to clearly understand the language of Python logic grammar-simple, clear, straight, to compare her to human words, like a dense Sicilian lady, decent manners but the conversation is graceful.

Once the language of Python was warmly welcomed, and in the years of computer technology becoming more mature, she also succeeded in the first place in the programming language rankings in 2017, set the language of the global Programmer co-certification.

With all that said, what exactly is python ? How do we get started ?

Although Python has a glorious history, it is not a language across all platforms, and before Python3.0 is published, we use the editor to write Python , or to build a python on the computer. the environment that can run, as if a tropical reptile was raised in China as a pet, we should build a suitable environment for her to live in anyway.

The following are only for Python3.0 and Previous versions:

The first line of code on python , unlike other languages, goes up to a standard "Hello World", as mentioned above, to build an environment:

#! /usr/bin/python

The meaning of the above code is to make it easier for our editor to find the editor interpreter named Python in the folder where the code is pointing, but there must be a special situation if a user is installing python The interpreter was not installed under the/usr/bin folder for some reason, and the Python editor could not be found. To do this, we have another code:

#! /usr/bin/env python

The env in this line of code means to prevent the user from putting the Python file under the Usr/bin file, and when the editor goes to browse for the code to detect env , it will ignore the previous/usr/bin and turn directly to the computer's Python file to search for and find the interpreter that is appropriate for the current editor.

Then someone will ask, so much trouble, you said before, this is Python3.0 version, why we can not use Python3.0 and the version after Python3.0?

The reason is simple, although the programming language is a computer-linked concept, but she itself is a "computer" and "language" two characteristics of the material-she and the computer, as the version of the update, and constantly updated, constantly more convenient for programmers, but also as the language, the older, the older, The more words they can contain, the more capable they are. Even after the first year of Python's top-of-the-list programming, there are still a lot of people who use python2.0+, just as the wine, the older, the more mellow.

The editor is mentioned earlier, so what kind of editor is appropriate for Python ?

In fact, when it comes to the editor, we can jokingly say: The text document is all right.

Yes, it can be, but we've been working hard to evolve to this point, not to go back to doing it in the most primitive way, and here I push two editors:

Dreamweaver CS6: http://www.php.cn/xiazai/gongju/469

Notepad+:http://www.php.cn/xiazai/gongju/92

These two editors are currently known to use the widest range of two editors, and the main thing is that they are quite convenient, not like the text of the previous joke on the writing of the error is not known, can be written on the side of error correction, the programmer, is always changing bugs and write bugs Ah ~

Above, is about the introduction of Python content.

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.