"If programming is an introductory tutorial to Python that you can understand with zero basics of magic"-(1) Since you choose this series of tutorials, then I will let you understand

I. Introduction

I wrote a blog post about getting started with the Python language a few months ago. I recently re-reviewed it and found that the quality of the writing was too random and may not be very friendly to some people, so I re-written a zero-based tutorial for the Python language.

This tutorial will try to explain some professional terms to readers clearly, and let readers know some basic principles to make readers more comfortable in the subsequent study. This series of tutorials will start by popularizing some professional terms at the very beginning, and then introduce some learning methods. Don't let readers learn this tutorial with ideological misunderstandings that are not suitable for the current technical level. Finally, I will summarize the learning direction and clarify for readers. Take a look at learning ideas.

recommend

1. "The highly acclaimed C language introductory tutorial"

This series of tutorials will be written in the form of a "magic world", and your support is welcome.

Everyone is welcome to pay attention to the official account. Every time the official account reaches 1024 or 1024 multiples, a lucky draw will give a mechanical keyboard + 2 copies of IT books~ and the official account will be updated faster.
Insert picture description here

learning target

  1. Understand what programming is
  2. Know what the program is
  3. Understand what the explanation is
  4. Understand what you can do after learning programming

2. Applicable objects

This series of tutorials is a zero-based easy introductory course, suitable for readers with zero-based. Readers don’t have to worry that this series of tutorials will be difficult to understand. All the "ununderstood knowledge" that appears will be explained to readers. Before the formal start of learning Python language content, readers will be popularized some programming concepts, so that readers Understand what programming is, what is explanation, and answers to some common questions.

Before a zero-based reader learns programming, I personally recommend that novices first understand some basic computer and programming concepts. Only when you understand some concepts can you make subsequent learning easier and reduce errors. Perhaps most readers do not have this condition, nor do they know where to find the required knowledge. This is the reason why this series of articles was written. This series of articles will combine my experience in learning programming and analysis of various aspects, so that novice readers will practice less and reduce time.

3. Sharpen the knife first

It is necessary to gradually understand the overall "structure" of the learning language. Many friends do not know what the language can do when they are learning this language. It may be due to the school's courses, so they have carried out passive learning, or they may learn the language abruptly due to other reasons; But because I don’t have a systematic understanding of the language and I don’t know what I can do after learning, it seems to me that knowing what I’ve learned is a very necessary process.

3.1 What
is programming? Python is a programming language, and programming literally means writing programs. Write a program to make the computer solve a problem and get a result.

The above explanation may be difficult to understand for novices who are new to programming or computers. Questions such as "What is a program?", "How does the computer get a result?", "How to write a program", etc. may arise. Then I will explain another way: "Programming means that a person gives a command to the computer and makes the computer complete the command"; just like using an air conditioner, we give the air conditioner on and off commands through the remote control, press the remote control to turn on, and the air conditioner receives It will turn on when the command is on. This is programming, a process and execution in which a user gives commands and a machine executes commands. Here we do not explain in depth how the computer performs the corresponding operations according to the instructions, only need to understand what is programming.

3.2
What is a program What is programming is explained in 3.1, but it is not explained what a program is. A program refers to one or more instructions that the computer can recognize and execute. We already know that programming is to give and execute commands; when we give a command, the computer needs to recognize the command, and if the command is not recognized by the computer, it will not execute it. The "command" in the above description is a program, and writing a program refers to editing and combining one or more instructions that the computer can recognize.

One or more instructions form a program, and the software we usually use is composed of one or more instructions. The python language is the language for us to "communicate" with the computer. The python language enables us to "communicate" with the computer, so as to write multiple instructions for the computer to execute.

Although we can use the C language to "communicate" with the computer, this "communication" is indirect, and the python language does not actually make the computer "understand", and requires a translation process called interpretation.

3.3 What is interpretation
In the python language, interpretation refers to the process of converting python language instructions into instructions that can be recognized by computer equipment.

The interpretation will be executed by the interpreter. Different languages ​​have different forms of compilation/interpretation. Some languages ​​such as C will first interpret all the code into a language that the computer can understand at one time, and then the computer will execute it. And python will explain a paragraph and give the interpreted language to the machine to execute.

3.4 Through the above understanding, do you feel that the steps are cumbersome?
After describing the programming through the above steps, I found that writing a program requires a lot of things, but we don't understand these things at all. What should we do?

When I first read some "zero-based introductory" books, I was particularly depressed, and even gave up several times. It’s too difficult, I can’t learn it at all; I finally made up my mind to read a book at least, and finally found that in actual programming, all we need to do is to write the code, and we don’t need to do the other processes ourselves. . The code editor we use has some built-in processes, which have helped us realize these necessary processes.

3.5 What can I do after learning python?
Many novices may feel that after learning a language, they can use it to write things and write projects. In fact, it’s a pity that a novice can't do anything after learning python, because in the professional programmer circle, programming language is a threshold. Normally, after learning a language, you can’t do something you want through what you learn. Necessary procedures. If you want to make some software, you have to learn some corresponding technologies, but these technologies are based on this language and it will be much easier to learn.

After learning python, there are several directions, such as big data, machine learning, automation, web, vision, etc., of course, it also includes the production of some small tools. To engage in these directions, you need to learn knowledge in these directions. Just like you study mathematics, if you want to calculate some physics values, you must learn related physics, otherwise it is impossible for most people to start.

Four, summary

Through the above description, we learned the following:

  • Programming means that a person gives a command to the computer and makes the computer complete the command.
  • A program refers to one or more instructions that the computer can recognize and execute.
  • Interpretation refers to the process of converting language codes into instructions that can be recognized by computer equipment.
  • After learning a language, you cannot directly make some software, you need to learn related knowledge content.

Guess you like

Origin blog.csdn.net/A757291228/article/details/109291669