Home > Article > Backend Development > How does a novice learn python?
Python has been very popular in recent years. Many people want to learn python or engage in python-related jobs. So how can a novice with zero foundation learn python?
First select the Python version. For Python engineers, the Python version is your working environment. Therefore, before learning, you must consider choosing a version that suits you. Python3 is very friendly to novices with no basic knowledge and is easy to get started. After choosing a version, you can start learning.
Three major principles of learning
1. Principle of simple start: easy to get started, easy to generate "interest", and only when you have a sense of accomplishment can you have confidence. Learn it and learn it well. Including reading and writing code, you should start from the simplest.
2. The principle of gradual and orderly progress. Many masters emphasize perfect logic and superior grammar when they come up. In fact, these are not necessary when you are a beginner. Why do you say that? Some friends may have also discovered that in fact, whether it is Python or learning any of their own languages, such as English and Japanese. The most important thing is not logic or grammar, but the courage to speak out in order to achieve the purpose of communication (except for the nine-year compulsory mute English). Python is the language used by humans and machines to communicate. From the beginning, I dare to say that machines can understand it and complete basic functions. If we slowly improve our perfect logic and superior grammar, we won't be able to write four famous books as soon as we start. Of course, you can still develop some good basic habits at the beginning, such as writing more notes, writing more summaries, and sharing your experiences. One more thing, why do you want to share your experience? Although many people have written a lot of information, that is not our gain. According to the "Learning Pyramid Theory", we know that the most efficient learning method is "to be able to teach others."
3. From quantity to quality principle. Only through quantitative change can we achieve qualitative change. This is an unbreakable truth. Foreigners say "repetition is the mother of skill" and Chinese people say "practice makes perfect" (su neng sheng qiao). In fact, they all mean the same thing. . We can recall the process of any skill we have learned. Whether you are swimming a bicycle or swimming, it is a process of repeating the same type of movements, slowly turning this skill into a part of the body. When I first started learning Python programming, the principle of repetition was even more important.
Basic method of getting started
1. Systematic learning method: Python is also: words, grammar, and articles. from False, None, True, and, as, assert, break, class, continue, def, del, elif, else, except, finally, for, from, global, if, import, in, is, lambda, nonlocal, not Start with , or, pass, raise, return, try, while, with, and yield, and then learn functions, classes, modules, and projects. This kind of learning method is to find a book, and then read and type page by page, and slowly build up your own knowledge structure. The advantage of this is that the foundation is relatively solid, and you can go from easy to difficult. , the problem is that the results are slow and easy to get boring.
2. Imitation learning method: Imitation is the eternal ladder of human growth and progress. Children's growth is a process of imitation. They imitate their parents, people around them, and TV every day. Our programming imitation is to read a lot of other people's code and then imitate it. How to read other people's code? a. Take a rough look first, and know what function the other person’s code is supposed to accomplish. b. Let’s read it carefully again and see what other people say in every sentence. c. Find the gap, write the code to complete the same function at once, and then look at the difference with the code of the experts. d. Integrate it, combine the essence of the content you get with the code of the masters, and slowly turn it into your own coding style.
After learning for a period of time, we need to determine the direction of learning and work hard in this direction
There are many career learning directions in Python, and the career directions are generally divided into the following six:
Web full stack engineer, crawler development engineer, artificial intelligence engineer, Python development engineer, game development engineer, search engine engineer.
The above is the detailed content of How does a novice learn python?. For more information, please follow other related articles on the PHP Chinese website!