How to learn Python?

How to learn Python?


Python is very popular now, with simple syntax and powerful functions. Many students want to learn Python! So the little ones have prepared high-value Python learning video tutorials and related electronic books for everyone. They are all placed at the end of the article. Welcome to collect them!

How to learn Python?

When learning a programming language like Python with zero foundation, you will often encounter some situations:

I found a lot of information on the Internet, but I don’t know where to start; I bought this book, and I haven’t read the first chapter for a long time; I can write a few lines of code at first, but suddenly I can’t understand it; I read some tutorial And the video seems to understand, but I still can't write code by myself; I have been getting started many times, and every time I forget it all after two months.

For beginners, especially self-taught, too many questions may become a hurdle on your programming road, and you will go from getting started to giving up if you are not careful.

Let me make a few suggestions


Set a clear goal


A person without a goal is like a ship without a rudder and can only drift with the flow, and eventually stranded on a deserted beach; while a person without a clear goal is like a ship driving into the vast fog, you control the rudder once. Repeated back and forth again and again, but lost in the vortex of wandering.

I saw many people around me saying that I have a goal, which is to learn programming and then find a job as a highly paid programmer; there are also many people who say that I want to take a programming class and then make excellent programming software. These are all goals, but they are often unclear, not specific, and there is no general framework. When you move towards your goal, you will only become more confused.

Do you want to learn programming, do you want to write an automatic script to grab tickets and get coupons, or can it be automated when processing a large number of files? If your goal is to find a job, do you want to develop games or desktop software, data processing or websites, front-end or back-end? Programming is a very broad concept. If you don't have a clear goal, it will be difficult for you to stick to it in a state of "learn it before you talk".

Therefore, clear learning goals are very important, establish clear goals, and combine reality with specificity . Don't do those goals that you know are impossible to achieve. At the same time, you should have a clear mind and a clear direction in the formulation of the goals. You don't have to worry about getting the wrong goal and going on a detour, overcoming difficulties, and going forward courageously.


Build a holistic understanding


There is a saying in the field of software development: premature optimization is the root of all evil.

This is also effective in programming learning. Many people will pursue a certain one-step ultimate route. They often hope that others recommend a set of the best tutorials; often they will come to the book before practicing for a few days and nights; they often dive into the details. You can't get out of the horns.

It seems that there is nothing wrong. If you insist on saying that it is wrong, it is as if you insist on optimizing your code. If I say that you are doing it wrong, it seems that I have a problem.

But things are time-sharing, and doing the right things at the wrong time will lead to wrong results. Falling into partial details prematurely and pursuing theoretical foundations can easily confuse beginners, so that they get stuck at a certain point and cannot continue learning. For early learners, especially non-professional self-learners, it is a more reasonable way to open it up without asking for further understanding.

When you are new to programming, you don't need to care about too many details. Instead, you should have an intuitive impression of programming, know what technology can achieve, and experience the joy of programming. This and the previous point are complementary: when you have a goal, you can understand what knowledge points and learning paths are needed to achieve the goal, so as to establish what you want to learn; and when you have a whole knowledge of programming Cognition, you will be more aware of what you can do after learning programming, and make your goals more clear.


Choose the right starting point and route


After having a clear goal and establishing an overall understanding, the next thing is very natural: choose a starting point that suits you, move towards the goal, start your learning, and light up the skills on the map. Point and connect them.

Otherwise, blindly starting from an inappropriate place, such as choosing a book with a higher starting point, or tossing a certain framework when you get started, will get twice the result with half the effort, low efficiency, or even give up. The so-called "hasty is not fast" is the reason.

If you do the previous point and have some basic overall cognition, you will naturally understand how absurd the slogans of "proficient in XX in 21 days" and "becoming a data analyst in two months" are.

To sum up the above three points, you have to figure out:

  • Why did you learn
  • What to learn
  • Where to learn

Just like the popular mobile games on the market, you will find that their novice guidance is also a similar routine: explain to you the victory conditions of the game, guide you to a victory (clear goal) ; let you experience a set of high-level and high-configuration lineups (Overall cognition) ; guide you in the basic operation of the game and initial upgrades (starting point and route)

These games are carefully designed to make players addicted. The same is true for learning, let yourself "addiction" as soon as possible, in order to go deeper.

Reference: How to learn Python? -Cloud + Community-Tencent Cloud