Python grows by 5% (What is the secret of Python's continuous growth?) Python, take a look
在 2022 年十月的报告中,我们发现 Python 仍然是 GitHub 上第二大最常用的编程语言。有趣的是, Python 的使用...
[CSDN Editor's Note] This article will reveal the mystery of why Python has become so popular since its birth thirty years ago to today. Link to the original text: https://github.blog/2023-03-02-why-python-keeps-growing-explained/ 。
Without permission, it is prohibited to reprint the author | Rizel Scarlett translator | Bian An editor | Prince Yu production | CSDN (ID: CSDNnews). What programming language can continue to be popular thirty years after its birth? If you can think of Python, congratulations, you got it right.
In the October 2022 report, we found that Python remains the second most commonly used programming language on GitHub. Interestingly, Python's usage has increased by over 22% year-on-year, and in 2022, over 4 million developers on GitHub were using it.
In this article, we will delve into the history, characteristics, and usage of Python, and attempt to answer why the programming language conceived in the 1980s continued to dominate development. In addition, we will also provide some useful tips and techniques for experienced Python developers.
What is Python? Python is a high-level and interpretable programming language. Its syntax is very simple, which makes it easy to read, and it is very friendly to users and beginners. Python was originally built to meet the author Guido van Rossum's desire to design a programming language that is simple in use and beautiful in presentation. It was first released to the world in 1991.
Interestingly, the reason why the programming language originally intended to express "beauty" chose the word Python as its name is related to the television comedy "Monty Python Flying Circus", which premiered in the UK in the 1970s.
Since its inception, the Python language has been widely used by developers, data scientists, researchers, and other fields. You may ask, where do you see that Python is simple and beautiful? Let's make a comparison: usually as an introductory example, every novice programmer will write this case:.
Python print ("Hello world.") and if you use Java, you will have to write many more lines: JavapublicclassHelloWorld {publicstaticvoidmain (String [] args
){System. out. println. ("Hello world");}} As Python is a general-purpose language, it can be used in various applications, and its "simple and easy to use" characteristics make it an excellent language for automated tasks, building websites or software, and analyzing data.
Python has several other features that make it popular among developers and engineers. These include: easy to read: Python code uses English keywords instead of punctuation mark, and its line breaks help define code blocks. This means that you can easily understand the design purpose of the code by viewing the code;.
Open source code: You can download the source code, modify it, and use it freely; Cross platform: Some languages require you to modify the code to run on different platforms, but as a cross platform language, Python can run the same code on any operating system as long as it has a Python interpreter installed;
It is extensible: Python code can be written in other languages (such as C++), and users can add underlying modules to the Python interpreter to customize and optimize their tools; Having a powerful standard library: this library is accessible to anyone, which means that users do not have to write code for each function, but rather access built-in modules to help solve problems in daily programming.
What is Python commonly used for? Python can be used for almost anything, from network and software development to machine learning and artificial intelligence (AI). Below, let's take a look at the most common use case import antigravitydefmain(): antigravity.
fly()if __ name__ == __ main__: If you run main(), you will see some jokes, usually used by Python engineers to smile and get back to business when they are bored. Below, we will introduce the current situation of Python from some fields:.
1. Python is a popular language for web and software development, as you can create complex multi-protocol applications while ensuring concise and readable code. In fact, some of the most popular applications are built in Python.
In addition, the open source community of Python provides developers with a large amount of reusable code, frameworks, and support. For example, Django, one of the most commonly used Python frameworks designed by a group of experienced developers, aims to help others efficiently develop applications and solve common problems that may hinder their progress in the project.
2. An important advantage of using Python for task automation is that it can automatically perform some procedural or repetitive tasks. With Python, you can learn how to automate anything by using built-in modules or pre written code from its robust library, or you can write your own custom scripts to perform specific operations.
For example, you can easily use the "smtplib" module to automatically send emails, or use the "shutil" module to copy files. Python also has a robust set of testing frameworks, making it an excellent language for testing automation. Frameworks like Python, Behave, and Robot allow developers to write simple and effective tests to ensure the quality of their build.
3. Machine Learning and Big Data: Here is an interesting fact: Python is the preferred language for data science and research. Due to its easy to understand syntax and strong adaptability, people with almost no development experience can easily learn Python and use it to manipulate data for research, reporting, prediction, regression analysis, and so on.
For data scientists, collecting and parsing data is a time-consuming task, and Python, as one of the main languages for training machine learning (ML) models, can analyze and identify features in these model data through specific algorithms, making predictions or decisions based on these data. It can also continuously optimize and adjust based on previous datasets to cope with new variables.
Data scientists and developers who train ML models often use libraries such as NumPy, Pandas, and Matplotlib to automate data cleaning, transformation, and visualization. 4. Financial or financial analysis is similar to how Python helps data scientists process large datasets. Python is widely used in the financial industry to quickly perform complex calculations.
The stock market will generate a large amount of data. Python can be used to import data about stock prices and identify trading opportunities through algorithm generation strategies. The language can also be used for investment combinatorial optimization, risk management, financial modeling and visualization, cryptocurrency analysis, and even fraud detection. 5. Artificial intelligence Python can also be used in some of the most complex artificial intelligence (AI) technologies, It is actually one of the preferred languages for artificial intelligence.
Python's concise and readable code allows developers to create consistent and reliable systems. Its vast library provides many frameworks like PyBrain, providing developers with powerful algorithms for machine learning tasks. Additionally, Python's visualization capabilities can help transform these large datasets of AI or ML into understandable graphics or reports.
Interestingly, OpenAI, an artificial intelligence research laboratory, utilizes the Python framework Python as their standard framework for deep learning and is used to train its artificial intelligence systems
Why is Python so popular? In addition to relatively simple learning, there are other reasons why Python continues to be popular, including high productivity: compared to other more complex programming languages such as C++, Python's syntax allows users to do more things in less time and reduces the time and effort required to write the same line of code.
It has a broad and supportive user community: even the best developers encounter problems, and the user community becomes a valuable resource gathering place. Python has a huge community that provides documentation, tutorials, tips, and tricks to master the language. For example, the Python community on GitHub provides everything from the latest version of the language to bug reports and update instructions.
Education recognition: Python has become the preferred programming language in the education industry, and some students even encounter Python in elementary school (believe it or not, some children's drawing books are specifically written for Python). Although computer science students are often taught Python, its use has long surpassed a single discipline and extended to STEM and other fields of academic research.
For example, Python can be used to solve differential equations, perform statistical analysis, simulate and track particle diffusion, and so on. It has high enterprise needs: due to its wide applicability in development and data analysis work, learning and understanding Python is usually considered a necessary skill for job seekers. Based on the situation of well-known recruitment agencies, Python language is the third programming language in the global recruitment demand for 2022.
At the end, Python is everywhere. It has been widely used to build a large number of technologies, websites, and even systems that most people encounter every day. The technologies it provides, from your favorite video streaming service to machine learning algorithms, and even help you with cryptocurrency transactions. Here is a broader example. NASA is also using Python to analyze the data of the complex James Webb Space Telescope, This makes it one of the few programming languages applied to projects outside the world.
当前非电脑浏览器正常宽度,请使用移动设备访问本站!