Introduction
Python is a high-level scripting language that combines interpretation, compilation, interactivity, and object-oriented.
Python is designed to be very readable. Compared with other languages, English keywords are often used, and some punctuation marks of other languages have a more distinctive grammatical structure than other languages.
What exactly can python do#
- reptile
- data analysis
- Machine learning
- APP development
- game development
- Automation script
- Web development
The future of python#
Higher-higher development efficiency
Python has become a big hit in the industry in the past two years. I have been thinking about the reason. Apart from cloud computing to help Python bring a wave of rhythm, are there other reasons? There must be, I think there is another main reason for the high enthusiasm for Internet entrepreneurship in recent points. Thousands of programmers have listened to various entrepreneurial chicken soups and quit large companies to work stably and start a business. Zhongguancun Entrepreneurship Street for 14, 15 years It was a lively event. The Prime Minister had been there several times. I myself tried one or two projects with my friends. At that time, everyone was anxious to develop things quickly to get financing. At that time, the minds of investors were also hot. , A large amount of money is invested in various startup companies for various cash subsidies to grab users. Time is money. You can’t wait for the idea to be available today, and the product will be launched tomorrow, and the product will be online for a month at night. Maybe the war has nothing to do with you. Therefore, a language with extremely high development efficiency has entered the eyes of developers. Because developers are like gods, they don’t know where the development efficiency is higher than C and Java. Many startups choose Python as the development language, although those startups Most of the companies failed, but gave birth to the foreplay of Python's popularity in China.
Faster-run faster
Obviously Python is not a fast language, and slowness is also the main reason why many programmers criticize Python. However, in recent years, the PyPy interpreter has continuously improved the running speed of Python. Programs run through PyPy are faster in certain scenarios. Directly approaching the C language, I believe that in a few years, the running speed of Python will no longer be a problem. In addition, due to the recent rapid development of CPU processing speed, the speed of the programming language itself is no longer the main consideration in most business scenarios (except for businesses that are extremely sensitive to response speed, such as search).
More powerful-more powerful
This is one of the main reasons that caused the Python fire. Python's standard library and third-party libraries are so powerful that you can't imagine. No matter you want to engage in technical programming in any direction, you can almost find the corresponding library support. A few chestnuts:
- WEB development-the most popular Python web framework Django, the Tornado framework that supports asynchronous and high concurrency, the short and slick flask, bottle, Django's official slogan defines Django as the framework for perfectionist with deadlines (the main idea is a development for perfectionists High-efficiency web framework)
- Network programming-Twisted network framework that supports high concurrency, asyncio introduced by py3 makes asynchronous programming very simple
- Crawler-In the crawler field, Python is almost dominant. Scrapy\Request\BeautifuSoap\urllib, etc., crawl whatever you want
- Cloud computing-currently the most popular and well-known cloud computing framework is OpenStack, Python is now popular, a large part of it is because of cloud computing
- Artificial intelligence-who will become the first development language in the era of AI and big data? This is already an issue that does not need to be debated. If three years ago, Matlab, Scala, R, Java, and Python had their own opportunities, and the situation is still unclear, then three years later, the trend is very clear, especially after Facebook open sourced PyTorch two days ago, Python as AI The position of the top language of the times is basically established, and the suspense in the future is only who can secure the second place.
- Automated operation and maintenance-ask every operation and maintenance personnel in China, what language must the operation and maintenance personnel know? 10 people believe it will give you the same answer, its name is Python
- Financial analysis-I personally worked in the financial industry before. In 10 years, many analysis programs and high-frequency trading software written by our company used Python. Up to now, Python is the most used language in the field of financial analysis and quantitative trading.
- Scientific calculations-did you know that since 1997, NASA has been using Python extensively to perform various complex scientific calculations. With the development of many libraries such as NumPy, SciPy, Matplotlib, Enthought librarys, Python has become more and more popular It is suitable for scientific calculation and drawing high-quality 2D and 3D images. Compared with Matlab, the most popular commercial software in the field of scientific computing, Python is a general programming language and has a wider range of applications than the scripting language used by Matlab
- Game development-Python also has many applications in online game development. Compared with Lua or C++, Python has a higher level of abstraction than Lua, and can describe game business logic with less code. Compared with Lua, Python is more suitable as a host language, that is, the entry point of the program is in Python That end will be better, and then use C/C++ to write some extensions when necessary. Python is very suitable for writing projects with more than 10,000 lines, and can well control the scale of online game projects within 100,000 lines of code. In addition, as far as I know, the well-known game <Civilization> is written in Python.
Title: Introduction to python
Author: [Eric1997] (https://www.zhangyongzhao.site/)