0How should a beginner learn Python? These methods you need to know_learn python from scratch

Preface

Today we will take a look at how students with zero basic knowledge should get started and learn Python.

There are three stages of Python learning. If you follow this path, you will definitely gain something.

1Basic entry stage

The basics of Python are the most important. I recommend teacher Liao Xuefeng’s website to get started.

Don’t be afraid that the foundation will be boring. If you really lay the foundation, you will feel the pleasure of opening up your meridians when doing projects later. Please don’t be utilitarian when you start programming. You must be able to endure loneliness and boredom.

2 Application of third-party libraries

Once you have learned the basics, you can now learn how to use some commonly used third-party libraries, such as requests.

At this time you can start to work on some small projects of your own based on actual needs. When I was studying request, I started working on my first small project to simulate login as a course selection assistant. Relying on this, I got a high score of 95 points in an elective course. Of course, you can also make some small crawlers at this stage. Anyway, it depends on what you need and what you think.

3 Practical project stage

In the actual project stage, we started to learn frameworks: django and flask for website development. Scrapy for crawlers.

Don't look directly at the documentation! ! ! But you must definitely learn to read the documentation. It is possible that the learning project you encounter is not the latest tutorial, so at this time you can try the "left circle, right square" learning method created by the respondent:

Work on two complete projects at the same time, one of which is completely consistent with the old version of the tutorial, such as the versions of various installed packages, etc. The other one directly uploads the latest versions and encodes them synchronously. In practical learning of programming, we often encounter various magical bugs that cannot be solved because we did not keep the old version with the teacher, but we cannot stick to the old version.

At this time, we can learn basic knowledge without reporting errors on the old version that remains completely consistent, and we can also learn about the changes in version updates on the new version. At least we can use the old to introduce the new and follow the example.

img

Regarding the specific knowledge points of Python learning, let’s talk about it here.

1. Basic Python learning

  1. What can you do if you know what Python is?

  2. Know what variables, algorithms, and interpreters are

  3. Python basic data types

  4. How to operate lists and tuples

  5. String operation methods

  6. Basic dictionary operation methods

You can take the next step after mastering the above. If you encounter something you don't know, you can look it up online, or read books, notes, and some basic learning videos.

2. Master Python’s conditions, loops and related execution statements

The basic knowledge of any knowledge is a bit boring. Now we can start doing some logical things. Master the use of if, else, elif, while, for, continue, break and list comprehensions, as well as exception handling in programs.

3. Facing object knowledge

Facing object OOP, higher-level Python program structure, code reuse to avoid code redundancy, packaging your code, function parameters, scope, etc.

Classes can help us reduce a lot of development time and improve programming efficiency, which is very critical for medium and large projects.

4. Project Practice

At this stage, we must practice more and always believe that our practice is the only criterion for testing truth. Find and handle errors and exceptions encountered in the process, and search online when encountering problems.

After successfully solving these problems, you will have a great sense of accomplishment. Such a virtuous cycle is your biggest motivation for learning programming languages ​​​​such as Python.

img

Now let’s talk about the mentality of learning Python.

clear goal:

No matter what kind of knowledge we learn, we must have a clear understanding of our learning goals. Only in this way can we continue to move toward the goal, avoid detours, improve in the learning process, and enjoy the fun of learning as a whole.

If you study to find a high-paying job, then basic knowledge and project experience are very important.

0Basic novice introduction:

If you are a novice and want to get started with Python quickly, you can consider training.

On the one hand, the learning time is relatively short and the learning content is more comprehensive and focused.

On the other hand, professional teachers provide systematic teaching, and can quickly solve technical problems when encountering them. At the same time, there will be targeted projects for practical exercises, which can train corporate project development ideas and skills, and have full exposure to the website development process of large Internet companies and industry standards. , production standards. You will have real project experience, which will be very helpful in finding a job. Moreover, there are many like-minded friends around, and the learning atmosphere is stronger, and we can help each other develop ideas. You will be more motivated to study and your learning results will be better

About Python technical reserves

Learning Python well is good whether you are getting a job or doing a side job to make money, but you still need to have a learning plan to learn Python. Finally, we share a complete set of Python learning materials to give some help to those who want to learn Python!

1. Python learning route

Insert image description here

Insert image description here

2. Basic learning of Python

1. Development tools

We will prepare you with the necessary tools you need to use in the Python development process, including the latest version of PyCharm installation and permanent activation tool.
Insert image description here

2. Study notes

Insert image description here

3. Learning videos

Insert image description here

3. Essential manual for Python beginners

picture

4. Python practical cases

Insert image description here

5. Python crawler tips

picture

6. A complete set of resources for data analysis

Insert image description here

7. Python interview highlights

Insert image description here

Insert image description here

2. Resume template

Insert image description here
Insert image description here

Data collection

The complete set of Python learning materials mentioned above has been uploaded to CSDN official. If you need it, you can scan the CSDN official certification QR code below on WeChat and enter "receive materials" to get it.

Insert image description here

Supongo que te gusta

Origin blog.csdn.net/xiqng17111342931/article/details/133344740
Recomendado
Clasificación