Introduction to the three stages of learning Python

Wang Guowei divided the reading into three realms in the "Human Words": "The ancient and modern into a big cause, the university asks, must go through three realms: 'Last night, the west wind withered trees, alone on the high-rise, hope to end the road" This first place is also. 'The belt is gradually widened and does not regret, and it is a smash for Yi. 'This second place is also. 'There are thousands of Baidu in the crowd, and suddenly look back, the man is in a dim light.' The third territory is also.

I haven’t had much time since I started Python, so writing such a big topic will definitely lead to various criticisms. Of course, I didn’t want to make a big news. I just want to make a simple summary based on my own learning process. A brief introduction to some of the good books in the three stages.

Python is very versatile, and different programmers use it in unused fields. Different programmers package their own code into libraries for use by other programmers, thus making fewer wheels, using various libraries, and Python itself. Flexibility, legibility, ease of writing, and more and more people use, the usage rate of tiobe statistical programming language is as follows: Python has risen by 3 in the rankings of the year, and major companies are hiring If you can master Python, it is definitely a plus item, because Python has a strong advantage in text processing and small program writing. Some time ago, a friend asked to help change the color of their company logo. The first thought The use of Python, female tickets let me help her pre-process big data, the first one is still thinking of Python and so on.

Of course, there is no saying that other languages ​​are not good, nor is it to discuss which language is better, but Python is indeed a happy language. Let me talk about the realm of Python learning and recommendation books.

The first stage: Beginner, master the Python syntax and the use of some common libraries

Here I first recommend Liao Xuefeng's online books, Python 2.7 and 3.0. This book is suitable for the beginning of reading. As a developer, in addition to the basic grammar, this book mentions some other commonly used The library, I saw a lot of things written by Liao, I feel his thoughts, and the height, generality, and principle of writing a blog is very good. After reading this book, I believe I can write a lot of things. Have fun with the Python interpreter.

There is also a book, the Python Reference Manual, which is also very useful. It is basically covered in all aspects of Python. It can be used as a Python dictionary to query usage. It is very easy to use. The best way to master a language is to use it, so I feel that brushing Leetcode while learning grammar is one of the fastest ways to master Python. I will also watch the video lesson in the Tencent class, "Introduction to Python". The basics of this tutorial are very thorough.

Many of them only need to use Python as a script or just write some small programs to process the text. It is enough to go to this stage. This stage can help us to do a lot of things. But if you are a professional Python, I am afraid you need to upgrade hard: First, most people in the country learn Python after learning other languages ​​(C, C++, Java, etc.), so Python is different from these languages. , that is, pythonic things take some time to learn and master; in addition, it takes a long time to master the library structure of the field of their own field; finally, if you want to complete a Python project independently, the project layout , release, open source, etc. are all issues to consider.

The second stage: intermediate, master the library of your own domain, master pythonic writing, very familiar with Python features

The first book recommended is "Write High-Quality Code - 91 Suggestions for Improving Python Programs". This book probably mentions the file layout of Python projects, and more summarizes how to write pythonic code. Also introduced some commonly used libraries.

In order to understand Python in depth, it is also very important to look at the source code of Python. You can thoroughly understand the core mechanism of Python by reading the source code. Here is the Python source code analysis - deep exploration of dynamic language core technology. This book has not been read. It is only a matter of taking a look at the relevant chapters when you need to understand a certain function or data structure of Python.

There are certainly a lot of books and materials in your field. For example, there are many frameworks for web development. Only by understanding all the frameworks, you can measure the pros and cons when you choose, and then master some architectures.

After this stage, you can write pythonic code, you can contribute to the open source community through PEP8 check, you can write a Python file very well, but if you want to develop a large project in Python, there are still many things to master. Such as project documentation, project release, download, project performance and case, and more.

The third stage: advanced, from the entire project, considering document, distribution, performance optimization, etc.

I only read a book "the hacker guide to python". I read the English version. This book has a lot of detailed introductions to the layout, documentation, performance, and release of the project. I think it is still very good. , but I still need to read it again.

For most people, it's hard to have a chance to start a meaningful large-scale engineering project from scratch, so you can use Python to implement some simple functions, simple projects, this inspiration can be learned or quora search, many seniors share Have your own experience.

Start with the big picture, plan the layout of the project, set the corresponding document description, provide the method of downloading and installing the project, bring several demos, each class, each function, each line of code is repeatedly scrutinized, write the program of pythonic I believe that Python is here at this time!

to sum up

This article is just three kinds of realms that I think of learning Python. With my superficial vision, there must be too many deficiencies, and I am a level of junior and advanced Python programmers. Writing this article is also a Let's set a goal.

I don’t want to be sensible in the quiet, even though Ying Wu is also a vain person who has nothing to do with the greatness of the ancients, not only the talents of the world, but also the tenacity.

Pin Header Connector

Pin Header Connector,A-Type Dual Base Pin Header Connector,A-Type Single Base Pin Header Connector,Four Row R/A Pin Header Connector

Dongguan Yangyue Metal Technology Co., Ltd , https://www.yyconnector.com

Posted on