Table of Contents
Foreword
Text
The third stage: advanced, focusing on the entire project, considering document, distribution, performance optimization, etc.
Summary
Home Backend Development Python Tutorial The different stages of learning Python

The different stages of learning Python

Aug 03, 2017 pm 05:47 PM
python different stage

Foreword

Wang Guowei divided reading into three realms in "Human Words": "Those who have achieved great things and great scholars in ancient and modern times must pass through three realms: 'Last night the west wind withered the green trees. "Go up to the tall building alone and look at the end of the world." This is the first state. "My clothes are getting wider and I don't regret it. I am so tired." This is the second state. That person is in a dim light. This is the third situation. I haven’t had much time since I started Python, so writing such a big topic will definitely trigger various criticisms. Of course, I don’t want to make a big news. I would like to make a simple summary based on my own learning process, and also briefly introduce some good books corresponding to these three stages.

Text

Python has a wide range of uses and different programs. Programmers use it in different fields. Different programmers package their own codes into libraries for use by other programmers, thereby reducing the need for reinventing the wheel. The use of various libraries, coupled with the flexibility and readability of Python itself, makes it easy to Writing, more and more people are using it. Tiobe statistics the usage rate of programming languages ​​is as follows: Python has risen by 3 places in the usage rankings in one year, and if major companies can master Python when recruiting employees, they will definitely It is a plus point because Python has great advantages in text processing and small program writing. Some time ago, a friend asked me to help change the color of their company logo. The first thing that came to my mind was to use Python. The female vote asked me to To help her preprocess big data, the first thing that comes to mind is still Python, etc. Of course, I am not saying that other languages ​​​​are not good, nor is it to discuss which language is better, but Python is indeed a language that makes people happy. Let’s briefly talk about my division of realms in the Python learning process and recommended books
The different stages of learning Python

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

  • Here I first recommend Liao Xuefeng’s online book, which is the Python2.7 version. This book is suitable for reading from scratch. As a developer, in addition to basic grammar, this book It mentions some other commonly used libraries. After reading a lot of things written by Teacher Liao, I feel that his ideas, as well as the height, generality and principle of writing blogs and books are very good. After reading this book, I believe that You can start writing a lot of things, and you can play with the Python interpreter to your heart's content.

  • ##There is also a book "
  • Python Reference Manual

    ", which is also available. It is very useful. It covers basically all aspects of Python. It can be used as a Python dictionary to check how to use it. It is very easy to use.

  • The best way to master a language is to use it. I use it, so I think brushing Leetcode while learning grammar is one of the fastest ways to master Python
  • Many people only need to use Python as a script or write some small programs to process text. If so, it is enough to reach this stage. This stage can already help us accomplish many, many things. But if you are a professional learning Python, I am afraid you still need to work hard to upgrade: First of all, most people in China 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, understand and master; in addition, it also takes a long time to master the library architecture of your own field; finally, if you want to complete a Python project independently, the layout of the project , publishing, open source, etc. are all issues that need to be considered.

The second stage: Intermediate, master the libraries in your own specific field, master pythonic writing, and be very familiar with the characteristics of Python

    The first book recommended is "Writing High-Quality Code - 91 Suggestions for Improving Python Programs". This book briefly mentions the file layout of Python projects, and more summarizes how to write pythonic code. In addition, it also introduces some commonly used libraries.
  • If you want to understand Python in depth, sometimes it is important to look at the source code of Python. By reading the source code, you can thoroughly understand the core mechanism of Python. Here is recommended Python Source Code Analysis - An In-depth Exploration of Dynamic Language Core Technologies". I have not finished reading this book. I just read the relevant chapters when I need to understand a certain function or data structure of Python in depth, and I feel that it has benefited a lot.
  • There must be a lot of books and materials in your own field. For example, there are many architectures for web development. Only by understanding and familiarizing yourself with all the architectures can you weigh the pros and cons when choosing, and then have a deep understanding of a certain architecture. some structures.
  • After this stage, you can write pythonic code, pass the PEP8 inspection, and contribute to the open source community. You can write a Python file very well, but if you want to use When developing a large-scale project in Python, there are still many things that need to be mastered, such as project documentation, project release, downloads, project performance and cases, etc.

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

  • Currently I have only read one book "the hacker guide to python" , I read the English version. This book provides a lot of detailed introduction to the project layout, documentation, performance, release, etc. I think the writing is still very good, but I need to read it a few more times.

  • For most people, it is difficult to have the opportunity to start a meaningful large-scale engineering project from scratch, so you can use Python to implement some simple functions, simple projects, this inspiration You can search on Zhihu or Quora. Many seniors have shared their experiences.

Start from the overall situation, plan the layout of the project, set the corresponding documentation instructions, provide methods for downloading and installing the project, and bring several demos, each class and each function. Each line of code has been carefully considered and written into a pythonic program. I believe that Python will be at our fingertips at this time!

Summary

This article is just what I think are the stages of learning Python. From my humble perspective, there must be too many shortcomings, and I am also a beginner and advanced Python user. Depending on the level of a programmer, writing this article can be regarded as a goal set for myself.

The above is the detailed content of The different stages of learning Python. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP and Python: Code Examples and Comparison PHP and Python: Code Examples and Comparison Apr 15, 2025 am 12:07 AM

PHP and Python have their own advantages and disadvantages, and the choice depends on project needs and personal preferences. 1.PHP is suitable for rapid development and maintenance of large-scale web applications. 2. Python dominates the field of data science and machine learning.

Python vs. JavaScript: Community, Libraries, and Resources Python vs. JavaScript: Community, Libraries, and Resources Apr 15, 2025 am 12:16 AM

Python and JavaScript have their own advantages and disadvantages in terms of community, libraries and resources. 1) The Python community is friendly and suitable for beginners, but the front-end development resources are not as rich as JavaScript. 2) Python is powerful in data science and machine learning libraries, while JavaScript is better in front-end development libraries and frameworks. 3) Both have rich learning resources, but Python is suitable for starting with official documents, while JavaScript is better with MDNWebDocs. The choice should be based on project needs and personal interests.

How to run programs in terminal vscode How to run programs in terminal vscode Apr 15, 2025 pm 06:42 PM

In VS Code, you can run the program in the terminal through the following steps: Prepare the code and open the integrated terminal to ensure that the code directory is consistent with the terminal working directory. Select the run command according to the programming language (such as Python's python your_file_name.py) to check whether it runs successfully and resolve errors. Use the debugger to improve debugging efficiency.

Can visual studio code be used in python Can visual studio code be used in python Apr 15, 2025 pm 08:18 PM

VS Code can be used to write Python and provides many features that make it an ideal tool for developing Python applications. It allows users to: install Python extensions to get functions such as code completion, syntax highlighting, and debugging. Use the debugger to track code step by step, find and fix errors. Integrate Git for version control. Use code formatting tools to maintain code consistency. Use the Linting tool to spot potential problems ahead of time.

Detailed explanation of docker principle Detailed explanation of docker principle Apr 14, 2025 pm 11:57 PM

Docker uses Linux kernel features to provide an efficient and isolated application running environment. Its working principle is as follows: 1. The mirror is used as a read-only template, which contains everything you need to run the application; 2. The Union File System (UnionFS) stacks multiple file systems, only storing the differences, saving space and speeding up; 3. The daemon manages the mirrors and containers, and the client uses them for interaction; 4. Namespaces and cgroups implement container isolation and resource limitations; 5. Multiple network modes support container interconnection. Only by understanding these core concepts can you better utilize Docker.

Is the vscode extension malicious? Is the vscode extension malicious? Apr 15, 2025 pm 07:57 PM

VS Code extensions pose malicious risks, such as hiding malicious code, exploiting vulnerabilities, and masturbating as legitimate extensions. Methods to identify malicious extensions include: checking publishers, reading comments, checking code, and installing with caution. Security measures also include: security awareness, good habits, regular updates and antivirus software.

Can vs code run in Windows 8 Can vs code run in Windows 8 Apr 15, 2025 pm 07:24 PM

VS Code can run on Windows 8, but the experience may not be great. First make sure the system has been updated to the latest patch, then download the VS Code installation package that matches the system architecture and install it as prompted. After installation, be aware that some extensions may be incompatible with Windows 8 and need to look for alternative extensions or use newer Windows systems in a virtual machine. Install the necessary extensions to check whether they work properly. Although VS Code is feasible on Windows 8, it is recommended to upgrade to a newer Windows system for a better development experience and security.

Python: Automation, Scripting, and Task Management Python: Automation, Scripting, and Task Management Apr 16, 2025 am 12:14 AM

Python excels in automation, scripting, and task management. 1) Automation: File backup is realized through standard libraries such as os and shutil. 2) Script writing: Use the psutil library to monitor system resources. 3) Task management: Use the schedule library to schedule tasks. Python's ease of use and rich library support makes it the preferred tool in these areas.

See all articles