Home > Article > Backend Development > What is python mainly used for development?
If you want to learn Python, or you are just starting to learn Python, then you may ask: "What can I do with Python?"
This is a bad question Answer, because Python has many uses. (Recommended learning: Python video tutorial)
But over time, I found that Python has the following three main applications:
Web Development
Data Science: including machine learning, data analysis and data visualization
Scripting
Web Development
Python-based web frameworks such as Django and Flask have become very popular in web development recently.
These web frameworks can help you write server-side code (back-end code) in Python. This is the code that runs on your server, not the code that runs on the user's device and browser (front-end code).
Main difference
Flask: Able to achieve simple, flexible and detailed control. And allows you to decide how to implement it yourself.
Django: Provides a comprehensive experience: you get an admin panel, a database interface, an ORM (Object Relational Mapping), and a directory structure for applications and projects out of the box.
Data Science
Data science, including machine learning, data analysis and data visualization.
Machine learning works by implementing algorithms that automatically detect patterns in input.
Use SQL to extract data from the database. I then use Python and Matplotlib (at Google) or JavaScript and D3.js (at Microsoft) to visualize and analyze this data.
What is a script?
Scripting generally refers to writing small programs that can automate simple tasks.
Python is suitable for this type of task because it has a simple syntax, is easy to write, and is fast to test.
For more Python related technical articles, please visit the Python Tutorial column to learn!
The above is the detailed content of What is python mainly used for development?. For more information, please follow other related articles on the PHP Chinese website!