The Python code is simple and easy to use. For self-study Xiaobai, after choosing a suitable teaching video, you must focus on practicing coding.
Looking back on my entire learning process, I deeply feel the importance of a complete and coherent set of teaching videos. Doing exercises in order to complete the task will inevitably create a gap in knowledge. In addition, learn to apply what you have learned. Abandon the idea of learning knowledge in order to complete the topic. Study and practice your field of interest. Try to let yourself avoid detours in the learning process.
1. Notes should be concise
Notes are not a necessity, and a large section of excerpted code is far inferior to writing it by hand on the computer. The consequence of excerpting large sections of code is that time is wasted, interest is lost, and learning efficiency is low.
2. Imitate first and then break through
Some classic cases deserve to be recorded and analyzed sentence by sentence. You can use # after each sentence of code to mark some comments by yourself for easy understanding. Follow the ideas of the predecessors. When you encounter sentences that you don’t understand, you can consult the information, and you can ask your brothers and sisters.
3. Try to do something that interests you
After mastering the basic knowledge of python to a certain extent, you must actually operate it and try to make some small games or systems by yourself. And I chose games.
When learning game making, you should first understand the principles, so I chose the most basic method of using the turtle drawing function to make some geometric games. For example: Snake, pinball, geometric simple version of flappy bird, etc. After understanding the basics to a certain extent, let's use pygame and use material pictures to make some advanced games without turtle.
Snake
Falppy bird
advanced version
While learning to make these small games, I learned a lot of functions that I hadn't touched before, such as monitoring functions, time functions and so on.
4. Learn to use various search engines
In the course of my learning, I have encountered many difficult incidents. First of all, it took a lot of time to install pygame because of the pip path problem. Second, almost every game has bugs. But I am not the only one who is learning python, and I am not the only one who encounters problems. Searching through search engines will find that these problems have been answered by predecessors.