More recently, python has caught fire with data analytics, and many non-professionals have jumped into the industry. Training institutions have sprung up, and instructional videos and documents are flying everywhere. Even with so much material, I still get a lot of people asking me how I should learn Python, or asking me some very simple questions, and I’m always confused. Here’s how I learned Python in 2 days. #1. How to learn

1.1 Find the right materials

It is not recommended to learn by video, because the pace of video learning is slow and takes a long time, and it is necessary to keep focused during this process, because you may accidentally miss a certain knowledge point, and there is no list of books in video, so you cannot accurately locate a certain knowledge point. Also do not recommend to see a few scattered blog posts on the net, because that is not a system, even oneself go filling all sorts of knowledge points. One way I recommend to use is to find some systematic e-books on the Internet. Why not paper books? Because paper books are not convenient to carry, and there is no way to read them anytime and anywhere. I mainly learned Python through Liao Xuefeng’s official website. The reason why I chose this one is that the contents of the catalog are relatively complete, and each chapter is not so much nonsense, so I can read it quickly.

1.2 Read the table of Contents quickly

A quick reading of the table of contents will give you a mental picture of what is going on, a mental picture of what is going on, a mental picture of what is going on and what is not.

1.3 Focus on differences

After browsing the table of contents, don’t rush to code each chapter, but start reading each chapter. Go through it briefly. During the browsing process, mark the points in your mind that are different from your previous understanding. For example: when you read “coroutine”, this is not touched before, highlight, in the later practice focus on learning. If you’re reading about recursive functions, you can just go through them.

1.4 Skip some separate chapters that are not currently needed

When browsing the directory, learn about the front chapter 10 is a basic grammar, the data structure, these is a must to master, in the following chapters, is a relatively independent chapters, tells the story of don’t application level respectively, which “email”, “web development” at the moment, I don’t need to use, just skip this section.

1.5 practice

Learning any language ultimately comes back to practice. Only knock out, their own debugging, in order to have a deeper understanding. The content of practice is mainly in the process of browsing in front, there are problems, or unclear content, directly through the debugging of the code to understand, those relatively simple, such as: conditional judgment, object-oriented things, directly skip.

It took about two days to complete the above operation, and I had no problems with basic Python use. Maybe at this time some people will feel a little pull, a little unlikely, to use a phrase: see the mountain is a mountain, see the water is water; Mountains are not mountains, and water is not water; See mountains or mountains, see water or water.

2. We see things differently

2.1 the list, the set

When I see these, my mind will emerge the corresponding data structure, the structure of the subconscious as know this how to add, delete, length of how to judge, and then corresponding to the content of the article, it mentioned operation is how to write, and other written language compared with before, only need to remember the differences of the two. For me, this knowledge point is just a difference from the previous language. If it is a person who has not contacted before, he first needs to know what the structure is, and then print it according to the example of the article to see what it looks like, and then operate some corresponding methods according to the example to see what the effect is.

2.2 Inheritance, polymorphism

Directly is the animals see these two words, — “four legs animal – sheep, cattle, when you see me to write this scene, maybe you do not understand what this is, this time you need to slowly through a large number of scenarios to understand this concept, and then on the basis of the concept mapping to the realization of the code.

#3. How to quickly understand Python requires knowledge of each of the following

  1. Data structure, need to understand some common structures, List,set,map, various bubbling algorithms, recursive algorithms and so on
  2. Some concepts of system: process, thread, coroutine, TCP,UDP, HTTP protocol, etc
  3. The concept of function, application; Object-oriented thinking, class inheritance
  4. Design patterns can tell you something
  5. Familiarize yourself with one editor: Eclipse, PyCharm, IDEA, etc
  6. Ability to debug and solve problems

Follow public account