Python entry learning steps, I hope to help you

Python entry learning steps, I hope to help you

The process of learning python is divided into four stages: understanding python, finding an example to practice hands, doing projects, and improving ability.

1. understand python

The first step is definitely to understand what python is and what it can do; this suggestion is to find a book about python introduction:

• "Learn Python from scratch" (2.Edition)

•Python tour

You can read one of the two recommended introductory books. You don’t need to read all the contents of the introductory books, as long as you understand some basic knowledge of python:

•Data type: integer, string, list, dictionary, tuple

• Basic statements: operators, if statements, for statements, file operations

•function

•class

2. How to quickly get started with python programming with zero foundation? You have to find an example to practice your hands quickly!

After you have a certain understanding of python, you can go to the Internet to find a few sample codes and practice according to writing. I recommend that you can start to practice by learning crawlers. Compared with other languages, writing crawlers in python is the most convenient. Find some crawler books to read, and then find a few examples on github to learn from them.

•Crawler books: Python crawler learning tutorial series

•Github crawler: github search python crawler

At this stage, you will definitely encounter a lot of problems. This is a good thing, indicating that you are slowly making progress; if you encounter problems, you can search or go to the python community to ask questions.

3. How to learn python programming with zero foundation? You have to do the project!

At this time you should have a certain foundation of python, you can try to do some projects, most people will choose to be a website, there are three commonly used frameworks for python as a website: tornado, flask, django; for beginners, I recommend using Choose between flask and django:

•Django Chinese Document 1.8 https://www.beibq.cn/book/y99u297

• Django to build a simple blog tutorial

•Flask User Guide

Regarding flask and django project examples, there are a bunch of them on github, you can find them yourself.

4. the ability is improved, and the zero-based learning python is also an entry!

Python is a simple language, coupled with a large number of feature-rich libraries, it is easy to make people feel that they can do everything, but in fact, they just call the library; when it comes to ability improvement, I believe everyone has different views at this stage. , I will talk about my opinion:

•Look at the source code

•Community exchange

1. Look at the source code

Regarding the source code, you need to look at it purposefully. For example, now you want to understand python network concurrency, then you can see how high concurrency is achieved in the tornado code; if you want to learn architecture knowledge, then you can study the architecture of django Philosophy, the open source community has many excellent projects. The core code in them is the crystallization of the designer’s wisdom. Learning from it is extremely beneficial to us. If you continue to copy and eventually form your own style, your technical ability will be greatly improved.

2. Community Exchange

No matter how good the program is, it is only a tool. It is not the final product that determines the value. This requires more mixed communities; the technical community has many influences on a person. Go out and see what other people are doing. Expand your knowledge; share your amateur products with everyone and communicate with each other; believe me, the impact of this process on you is definitely not limited to your technical ability, and it will even help you a lot if you start a business in the future.

There are not as many technical communities in China as abroad. I recommend a few:

•V2EX ›Python https://www.v2ex.com/go/python

If you are still at a loss, then finding a teacher to lead the study is your best choice.

Reference: https://cloud.tencent.com/developer/article/1520678 Python introductory learning steps, I hope it will help you-Cloud + Community-Tencent Cloud