What is Python
Python (Python) is an interpreted, object-oriented, high-level programming language with dynamic semantics.
Python is a methodical and powerful object-oriented programming language, similar to Perl, Ruby, Scheme, Java. Most of the popular AI artificial intelligence technologies are written in the Python language, which greatly promotes the development of the Python language. The characteristics of AI deep learning technology itself determine that it is not suitable for statically compiled languages, and the selection of Python language as the basic language of AI technology framework is more due to the dynamic characteristics of Python and its high performance advantages such as high development efficiency.
Basic output
print(“Hello world!”)
The founder of Python is Guido van Rossum, a Dutchman. During the Christmas period of 1989, Guido Van Rossum was determined to develop a new script interpreter as a successor to the ABC language in order to pass the time in Amsterdam. Python was chosen as the name of the program because he is a fan of the BBC TV series Monty Python's Flying Circus.
1991 In 1999, the first Python compiler was born. It is implemented in C language and can call C language library files.
Python 2.0 was released on October 16, 2000, which added full garbage collection and support for Unicode.
Python 3.0 was released on December 3, 2008. This version is not fully compatible with the previous Python source code. However, many new features were later ported to the old Python 2.6/2.7 version.
Python 2 and Python 3
There are two versions of Python, and the different versions are enough to stumble many new users. Python 2.x, the old "legacy" branch, will continue to be supported (i.e. receive official updates) through 2020, and may continue unofficially thereafter. Python 3.x is the current and future version of the language. It has many useful and important features not found in 2.x, such as better concurrency control and a more efficient interpreter.
Due to the relative lack of third-party library support, Python 3 has been adopted the slowest. Many Python libraries only support Python 2, so it is difficult to switch. But in the past few years, the number of libraries that only support Python 2 has decreased; most are now compatible with both versions. Today, there are very few reasons not to use Python 3.
**What can Python be used for? **
Python provides us with a very complete basic code library, covering a large amount of content such as network, files, GUI, database, text, etc., and is vividly called "Batteries included". Developed in Python, many functions do not need to be written from scratch, just use the ready-made ones.
In addition to built-in libraries, Python also has a large number of third-party libraries, which are developed by others for your direct use. Of course, if the code you develop is well packaged, it can also be used as a third-party library for others.
Many large websites are developed using Python, such as YouTube, Instagram, and domestic Douban. Many large companies, including Google, Yahoo, etc., and even NASA (National Aeronautics and Space Administration) use Python extensively.
The positioning of Python on the Internet is "elegant", "clear", and "simple", so Python programs always look simple and easy to understand. For beginners to learn Python, it is not only easy to get started, but also in the future, you can write very, very complicated ones. program of.
In general, the philosophy of Python is to be simple and elegant, try to write easy-to-read code and write as little code as possible. If a senior programmer shows off to you his obscure, tens of thousands of lines of code, you can laugh at him to your heart's content.
So far this article on what Python is and the use of Python is here. For more information about what Python can do, please search ZaLou.Cn
Recommended Posts