Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Which secret mistakes should be paid attention to when learning Python?

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Today, I will talk to you about the hidden mistakes that you should pay attention to when learning Python. Many people may not know much about them. In order to make you understand better, the editor has summarized the following contents for you. I hope you can gain something according to this article.

For beginners who have no programming experience at all, when learning python, they are faced with not only the python language, but also some common problems of "programming". There are two particularly obvious misunderstandings:

Myth 1: some beginners think that python is simple, so they think programming is simple.

Misunderstanding 2: did not learn the basic knowledge, heard that django is very popular, began to learn django development web.

Various signs show that these learners who start from scratch generally do not know where to start. After looking for this programming textbook, they find that they do not understand the lack of basic computer knowledge at the beginning of the second chapter. I don't know how to find a solution when I am stuck in a "common sense" problem skipped by some tutorials. After reading the grammar, I don't know what to do with it, and after a while, I forget the lack of basic programming knowledge such as data structure and design pattern, so I can only write small program fragments.

When learning Python, the expectation is too high, but at the beginning, it is not so good, but most people just stay in the situation where they know how to learn, know well, but it is very difficult to learn.

Here are a few things that seem like chicken soup for the soul, but the very important learning advice is:

First of all, have confidence. Although it's possible that you haven't typed a triangle on the screen for hours, or you haven't been able to get the program running at all. But believe me, almost all programmers do this at first. It is recommended that those who do not have any programming experience train and learn python like the C language, of course, you may not know how to learn c!

Choose the appropriate tutorial. Some books are classic, but they may not be suitable for you. It may be better to read them after you have written tens of thousands of lines of code. The following basic introductory books are recommended:

"parent and child programming"

"Learning Python"

Python Learning Manual Fifth Edition (getting started)

Python Core programming second Edition (in-depth study)

Write code, and then write more code. You can't write a program just by reading the tutorials. Start with the routines in the book, then write Mini Program clips, and then write the complete project.

Complement each other to strengthen the learning foundation. In addition to learning the programming language, but also a little bit of computer foundation, and English.

Hit the code. Not only learn to write code, but also learn to look at the code, but also to be able to debug the code. Read the error message of your own program. Find some programs on github and read other people's code.

Check the documents. Learn to check official documents and make good use of search engines and the developer community.

Here is how to get started with Python in four stages:

one。 Watch the video, choose a complete set of videos, and skim it quickly without detailed correction. The purpose is to form an overall understanding of python, estimate the time of half a month, establish a cognitive framework, and fix the basic theories of sentences, expressions, sequential structure, judgment structure and loop structure while watching, and transition to function abstraction and class abstraction.

two。 Choose a textbook with relatively full coverage. What I read is to go deep into the tutorials of python3 and Liao Xuefeng. You can choose one or another, type the examples, read them clearly, and you will definitely forget. But do not look back, just read it all, the aim is to consolidate the basic knowledge and find the location, this textbook is the reference book after.

Third, based on the foundation, and then play advanced applications: generators, decorators, class properties of some advanced usage, regular, multi-threaded, multi-process, etc., learn framework documents.

Fourth, do something with python as soon as possible. The first three stages should be fast, laying the groundwork for this stage. At this time, we can use what we have learned to solve the things around us. For example, reading the news that you can save 15000 yuan a year and become a billionaire in 40 years, you can verify that we should apply what we have learned.

Learning python is a happy thing, at this time may encounter all kinds of difficulties, then go back to review the corresponding knowledge points in the reference book, at the same time go to Google Baidu, if you can't write it out, you can refer to other people's projects to do something, after a while to understand python, you will know what to learn, web development, or crawlers, or data analysis, machine learning.

After reading the above, do you have any further understanding of the hidden mistakes that you should pay attention to when learning Python? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report