Today, there are almost 600 programming languages around the world, but popular programming languages are so 20来. If you've ever heard of the Tiobe leaderboard, you can see how popular the programming language is. Is the most commonly used in the last 10 years of the 10 programming language change diagram:
Common programming languages are different, each has its own merits.
Today, Python is a high-level scripting language that combines explanatory, compiled, interactive , and object-oriented .
Python's design is highly readable, with English keywords often used in other languages, some punctuation in other languages, and it has a more distinctive grammatical structure than other languages.
So what kind of language is the so-called python ?
First 1th: Python is an interpreted language.
This means that the process of development without compiling this link can save a lot of time and energy.
2nd: Python is an interactive language.
This means that you can execute your program in a Python prompt directly interacting with the execution.
3rd: Python is an object-oriented language.
This means that Python supports object-oriented style or code encapsulation in object programming techniques.
4th: Python is the language of beginners.
Python is a great language for novice programmers, it supports a wide range of application development, from simple word processing to WWW browser to game, Python can do a lot of things you can't imagine.
It explains what Python is like, so let's take a look at this magical language:python 's features .
1. Easy to learn: Python has a relatively small number of keywords, simple structure, and a well-defined syntax to learn more easily.
2. Easy to read: Python code defines the code more clearly relative to the other.
3. Easy maintenance: The success of Python is that its source code is fairly easy to maintain.
4. An extensive standard library: one of the biggest advantages of Python is the rich library, cross-platform, compatible with Unix,windows and Macintosh very well.
5. Interactive mode: Interactive mode of support, you can enter the execution code from the terminal and obtain the results of the language, interactive testing and debugging code snippets.
6. Portable: Based on its open source features, Python has been ported (that is, making it work) to many platforms.
7. Extensible: If you need a critical code that runs fast, or if you want to write some algorithms that you don't like to open, you can use C or C + + to complete that part of the program and then call it from your Python program.
8. Database: Python provides the interface for all major business databases.
9.GUI Programming: Python support GUI can be created and ported to many system calls.
10. Embeddable: You can embed python in a C + + program to give your program's users the ability to "script".
All in all, Python's positioning is "elegant", "clear", "simple", so the Python program looks always easy to understand, beginners learn python, not only easy to get started, but also in the future, you can write those very very complex programs.
Python's philosophy is simple and elegant, try to write easy-to-read code, as much as possible to write less code.
In the above we explain what kind of language Python is, and introduce the characteristics of the language. So let's take a look at what the Python language can do.
After we have mastered Python, we can do some routine tasks on our own: such as backing up your files, MP3, and so on.
You can also do things like website, backstage, and so on, many large sites are developed using the language of Python, such as: YouTube, Instagram, and the domestic Douban, Sohu is developed using Python.
Also you can use Python to do the backstage of the game, there are a lot of web game backstage is to use Python to write.
Python can also be used to write crawlers to help authors get a lot of information.
After introducing the knowledge of the Python language, let's look at why Python is so hot.
The Python language was just a few years ago a small minority of languages, but why did Python suddenly fire up in recent years?
I think the main reason can be categorized as the following three points:
(1). The rise of artificial intelligence and machine learning
In the last few years big data, artificial intelligence, machine learning are getting more and more attention, and many people are familiar with these concepts. And these aspects because of less talent, so the position of the salary compared to other similar positions higher, so many people are willing to learn this knowledge.
The Python language is simple, and has a large external library, especially many libraries related to the above content, such as Matplotlib, Numpy, Pandas, SciPy, these libraries are quite famous in Python, it is more convenient to use. As a result, Python has become the main language of big data, artificial intelligence, machine learning and thus has a considerable number of learners.
(2). Simple and easy to learn Python
Python's positioning is "elegant", "clear", "simple" compared to other programming languages.
Python is designed with a clear, consistent style, which makes Python an easy-to-read, easy-to-maintain, widely-used language that is popular with many users.
Python's design philosophy is "elegant", "clear", "simple". Therefore, the idea that "there are always multiple ways to do the same thing" in the Perl language is often unbearable for Python developers. The Python developer's philosophy is "in one way, it's best to have only one way to do something." When designing the Python language, Python developers tend to reject the fancy syntax when faced with a variety of options, and choose a syntax that is unambiguous and has little or no ambiguity.
It is because of this that beginners learn python not only easy to get started, but also to write complex programs when they go deep. The same program C language may have to write 1000 lines of code and Python may be as long as 20 lines can be done, which is why Python is easy to learn one of the main reasons.
(3). python has powerful features
Although Python is easy to learn, his features are very powerful. It focuses on how to solve problems, a free and open community environment, and a rich third-party library that eliminates the need to waste time building wheels, with a variety of Web frameworks, crawler frameworks, data analysis frameworks, and machine learning frameworks. If you are using Python for development, many features do not have to be written from scratch, directly using ready-made.