#第1篇Sharing: Introduction to Programming Language-Why Choose Python

Life is short, I choose python

1. Introduction to programming language
Computer programming language is the language of communication between humans and computers, so there are as many types as the languages ​​used to communicate between humans. Let's introduce some of the programming languages ​​we are familiar with;
a. Compiled language: Compiled language is the code that we write code is generated by the compiler to generate machine-recognizable code. Representative languages ​​are: C, C++, C#, JAVA (compiled language has the advantage of fast execution, but the disadvantage is that the amount of code is relatively large );
b. Interpreted language: Interpreted language is to directly execute the program through the interpreter , without the need to be compiled into machine-recognizable code. The representative languages ​​are: python (the execution will be relatively slow, but the functions are complete, the implementation is bold The style and function code is small, which will be mainly introduced below), BASIC;
c. Script language: Script language is a programming language used to control the application program, most of the time they are embedded in the application program to control or execute frequently executed automatic Tasks, representative languages ​​are: PHP, Windows PowerShell, JavaScript;
d. Markup language: Markup language is a man-made language that uses text annotations to define the display of these texts. The representative languages ​​are: HTML (HTML mainly writes website static interface , CSS can add static effects such as color and size to HTML, and JavaScript can add dynamic effects to pages; the above three languages ​​are very important languages ​​for front-end development)

Insert picture description here
2. What is python? What are the advantages?
a.Python is an interpreted programming language & object-oriented language: an interpreted language is such a programming language, most of which implements direct execution of instructions without first compiling the program into machine language instructions. The execution will be better than compiled The language is slow, but the speed is also very fast, and the shortcomings are almost negligible; the simple understanding of the
object-oriented concept is to directly manipulate the encapsulated module interface , without worrying about the implementation process, and will contact the concept of **class (class)** (will be introduced later) ): There will be encapsulation (for example, open the file, open(), no need to know the running process), inheritance (squareness, rectangle inherits the characteristics of quadrilateral), polymorphism (birds have multiple types, screws have multiple states) And other characteristics.
b. Advantages:
Advantage 1: Fast speed: The bottom layer is written in C language, and many third-party libraries are also written in C language, so the running speed is relatively fast;
Advantage 2: Free and open source: Users can freely read the source code , Make changes to him, etc.;
advantage 3: scalability: part of the program can be written in C/C++, and then used in pytho.
Advantage 4: Embeddability: pyth can be embedded in C/C++ to provide scripting functions to program users.

3. What can python do?
Python can be said to be very powerful. The first reason to choose this language is to open source and have unlimited possibilities. As you continue to deepen, you will find that it can do almost everything and has unlimited charm. This is like falling off a cliff in a martial arts novel. The feeling of obtaining martial arts cheats is the same, the peak of life is just around the corner; the
reason why python can complete so much work is because it has a wealth of third-party library functions, and with continuous demand, it is still constantly updated. A hero has three helpers , His brother’s is really so much

a. Data mining—also known as crawlers , the knowledge to be learned includes (reptile method requests, crawler framework scrapy, data cleaning (also called data filtering, which is to extract things that are useful to us) lxml, Beautiful Soup, database MySQL, fiddler packet capture tool, selenium web test system)

b.web programming-do website development (front-end HTML, CSS, javaScript, python-web framework Django, Flask, database, etc.)

c. Data analysis- big data (mathematics, statistics, industry knowledge, data mining, NumPy and SciPy, matploglib, etc.)

d. Artificial intelligence- intelligent recognition (picture recognition, API interface (Baidu AI), automation, machine learning, deep learning, etc.)

It doesn't matter if you don't know the above knowledge now. Collect it as a guide, and it will become clear with continuous learning. The most important thing in programming is to knock. Keep knocking. It’s best to form a habit. If you don’t knock for a day, you will feel uncomfortable. Hahahahaha

I am also self-studying the language of python. Although there are many documents when I learned about this language, I feel that they are part of the writing, not very comprehensive, or the explanation is obscure; I have searched for a long time to find out about this language get along; I hope after their own learning, through their own understanding give newcomers a comprehensive and intuitive introduction to welcome the exchange, the document is not perfect, it will be optimized for in-depth study and the various views, people live I always the Leave something, maybe a piece of code, maybe a blog;

The first blog, continuously updated,,,,,,,

Guess you like

Origin blog.csdn.net/weixin_46008828/article/details/108476721