A lot of beginners have a problem with going around in circles after learning Python for a long time.
I remember that I first came into contact with Python in 2011. When I was visiting a website, I came across an article introducing Python. I thought this language was very distinctive, so I wanted to learn it systematically. How to learn? There are so many books on the market. At the beginning, you may not know which one to read. My advice is that a primer should be done in a week or two. Those big books are not good for primer, they can be put away later. In the introductory phase, you basically follow the tutorial as you go along, typing all the examples in the book yourself once, or even twice or three times.
Blog is also a way of learning, but it is not systematic enough. To have a comprehensive understanding of a language, more than a few articles can explain clearly. Moreover, the rigor of blog is not as high as books. Therefore, a blog can only be used as a way to expand your knowledge.
After learning basic grammar, a lot of people stop here wondering what to do next. Actually there has a mistake, you is not for the purpose of the study and learning, although we do lifelong learners, but the purpose of our study is to put this to use, then, you’re wondering how to use what you have learned to solve a problem or achieve something, such as program automatically to some tedious task in the work, Or keep a ledger or something to keep track of your daily expenses. Picasso has a famous saying: Good artists copy, great artists steal, so start by referring to others’ Good things.
You’ll be able to read some of the code that others have written, and you’ll be able to write some simple code yourself. Next, you’ll need to find a full hands-on project to work on. There’s nothing quite as effective as getting your hands dirty. This is a tutorial on how to write a website hand in hand. When you’re done, you’ll know what a project looks like and what it involves, and then you can write your first project along those lines.
Where can I find these training programs? Zhihu has a question “What are the recommended Python training projects?” Although there are many recommended projects, none of them are systematic and complete. The best tutorials are the ones that teach you, code, and explain. If it’s a pure code project, this phase is still difficult for you because you don’t know what to think. So, projects like 500lines aren’t for the beginner, so look for the full tutorial. For example, online tutorials such as The -flask-mega-Tutorial, A Complete Beginner’s Guide to Django, and Let’s Build A Web Server, you can also buy some paper books. But the downside of a practical tutorial is that it’s easy to get out of date.
What should I do if I encounter problems in the process of learning? Internet is very developed today, must be a way to find the answer to the question, others also encountered the problem of because of you, all you have to master is how to use Google to find the answer, although will use baidu also can find the answer, but we tend to find those tools for us to save time, baidu is not clearly.
At this point, you may be able to do some simple projects on your own. Then you need to go back and read advanced books like the Python Cookbook, Fluent Python, the Python Learning Manual, Effective Python, Python Tricks, and so on. In addition to Python, you need to know database knowledge, network knowledge, system knowledge, and algorithm knowledge. When you realize that these things need to be learned, you already have the potential to become a good programmer. In addition to reading, there are others to write code, look at those excellent open source code, learn from the master. Why is the code written this way? What are the benefits? Is that the best way to write it? The benefits of looking at source code can make you more professional. How to look at the source code? Look at frameworks and libraries that you have used in your projects, because the source code must be based on something you already know how to use, otherwise it will be confusing. Large frameworks are not recommended or selective because large projects evolve iteratively over many years, and it’s hard to grasp the author’s ideas in a short time. In the meantime, keep practicing and improving your project to make it more like professional code.
Keep a habit of thinking, writing, and sharing. Learning is a lifetime thing. The more you learn, the more you don’t know, and the more you have to learn.
This article is from the “Python Enthusiast Community”, a partner of the cloud computing community. For more information, please follow the “Python Enthusiast Community”.