Some time ago, IEEE Spectrum released the latest fifth annual interactive ranking of programming languages! Python not only ranked first, but also topped the list in comprehensive index, user growth rate, employment advantage and open source language. So some netizens joked: "Life is short, why don't you use Python?"
So what is Python? Why is it so popular?
What is Python?
Python is an object-oriented, weakly typed interpreted language with the following features:
①Simple
Python is a language that represents the idea of simplicity. Reading a good Python program is like reading English, allowing you to focus on solving problems rather than figuring out the language itself.
② Easy to learn
Python is extremely easy to get started with because it has extremely simple documentation, and the Chinese documentation for Python was also released in March 2019, making the development environment more and more user-friendly.
③ Fast speed
Because Python advocates beauty, clarity, and simplicity, the amount of code used to achieve the same function is much less than other languages. Moreover, because the underlying layer is written in C language, many standard libraries and third-party libraries are also written in C language, so the running speed is very fast.
④ Free and open source
Python is one of the floss, and users can freely distribute copies of this software, read its source code, change it, and use parts of it in new free software.
What can Python do?
① Crawlers obtain or process large amounts of information : batch downloading of American TV series, running investment strategies, crawling for suitable properties, scripting tasks for system administrators, etc.
②Automated operation and maintenance : Automatically handle a large number of operation and maintenance tasks
③Data Analyst : Rapid development and verification, analyzing data to get results
④Game developers : usually embedded in the game as a game script
⑤Automated testing : Write a simple implementation script and use it in Selenium/lr to achieve automation.
⑥Website development : Build your own website with the help of Django and Flask framework.
⑦Website backend programmer : Use it to build a single website, and the backend service is easier to maintain. Such as: Gmail, Youtube, Zhihu, Douban
Why is Python so popular?
During the years when Ruby on Rails was at its most popular, someone asked Python creator Guido van Rossum what he thought. He said, "Python does not need a killer application, because if that were the case, Python's role in other areas would be ignored." Python has performed well in many fields, including web crawlers, data analysis, AI, machine learning, web development, finance, operations, testing, etc. No language has ever been able to take root in so many fields at the same time.
Python is a programming language that is both simple and powerful. It focuses on how to solve problems, a free and open community environment, and a wealth of third-party libraries. There is no need to waste time reinventing the wheel. Various web frameworks, crawler frameworks, data analysis frameworks, and machine learning frameworks are all available and can be used right out of the box. If you don’t know where to find a third-party library, you can take a look at awesome-python.
The development of Python is completely driven by the community itself. Why is it so popular? The reason is simple, because it really brings a pleasant programming experience to developers!