Home > Backend Development > Python Tutorial > What should newbies learn Python?

What should newbies learn Python?

PHP中文网
Release: 2017-06-20 16:22:32
Original
1363 people have browsed it

Learning any language starts with getting started (about 1 year) and reaches proficiency through continuous practice (3 to 5 years). A few people can eventually become proficient in the language and become leaders. They are the top of the pyramid. Although everything is difficult at the beginning, a good start is half the success. Today, this article will talk about how to get started with Python. As long as you are heading in the right direction, you are not afraid of a long journey.

 Setting goals
When you decide to get started with Python, you need a clear and short-term achievable goal, such as finding a job through learning. To get a job as a junior programmer, after the goal is clear, you need to understand what skills the company requires for junior programmers. The following are the job requirements for a junior Python engineer I found from Lagou.com:

1 , Familiar with Python and commonly used Web development frameworks;
 
 2. Familiar with the use of at least one database, such as MySQL, mongodb, redis, etc.;
 
 3. Familiar with the Linux operating system and common commands;
 
 4. Good coding habits and document writing habits; , just like playing in the NBA, you not only have to learn how to shoot, but also practice a whole set of things such as strength, skills and tactics. Therefore, the skills an ordinary Python Web development engineer needs to master include at least one Web framework, such as: Django, Flask, and Tornado. Building a business system cannot be separated from the support of the database. In addition, he also needs to be familiar with the basic operations and common commands of the Linux system. As you know, because the programs you write in the future will basically run on the Linux platform.

 
 Next, I will introduce these aspects one by one

  

 

Python3?

python3 official document download address:
 
Many novices are always confused whether to learn Python2 or Python3, just like having buns and steamed buns in their hands at the same time, not knowing which one to eat first. This kind of entanglement is completely unnecessary. trouble, because they are the same language, with only a few places where the syntax is incompatible. Although most companies are still using Python2, it is an indisputable fact that Python3 is gradually becoming the mainstream. After all, the latter has more advantages in performance, and the official Strongly recommend Python3. So choose Python3 without hesitation. It can take up to one day to understand the unique content of Python2.
 
 Development tools
 
If you want to do your job well, you must first sharpen your tools. There are endless IDEs (editors) for Python development. I only recommend Pycharm and Sublime. They The learning cost is very low. You can basically get started by finding a tutorial online. It is better to learn about ancient artifacts such as Vim and Emacs later. In addition, 90% of the problems you encounter in the future may be solved through Google and StackOverflow.
 
 Learning resources
 
There are a dazzling array of online introductory resources, and a good book can guide you. To learn Python quickly, take a look at Learn Python in Y minutes. But don’t be fooled by the title. You can’t learn a language in just a few minutes. After reading this, you should have a preliminary impression of Python. After following the examples, you should choose a suitable tutorial for getting started. , "A Byte of Python" is a book worth recommending. Let me talk about the reasons why I recommend this book.
 
The Chinese name of "A Byte of Python" is "Concise Python Tutorial". The latest version of this book is already the 10th edition, based on Python3.5, so you don't have to worry about falling behind in knowledge. Secondly, This book is 152 pages thick and is very suitable for getting started. It covers all the content of getting started with Python. Compared with those tomes of 500 to 600 pages, it is very concise and can be read in 2 weeks. And the most important thing is that this book is free. Reply "byte" on the public account pythonzen to get the e-book "A Byte of Python" in different formats for free.
 
After reading this book, you should be able to design a simple program. I recommend another book "Python Learning Manual" as advanced learning. The content is relatively more in-depth and suitable for people with a certain programming foundation.
 
To do web development, you must understand HTML, JS, and CSS. As front-end skills, you don’t have to have an in-depth understanding. It is enough to be able to write basic HTML code. In addition, you also need to understand HTTP protocol (recommend "Illustrated HTTP Protocol"). Currently, the more mainstream web frameworks include Django, Flask, and Tornado, each with its own characteristics. Django has rich documentation, Flask is short and concise, and Tornado is asynchronous and concurrent. It is recommended to use Flask here. The recommended book is "Flask Web Development: Practical Web Application Development Based on Python"
  
Linux recommends "Happy Linux Command Line", which is also a very classic introductory mini book, not too much Theoretically, the scope is not too wide. The public account replies "linux" and gets it for free.
 
MySQL only recommends one book called "MySQL Must Know, Must Be Comprehensive". It is a booklet of less than 250 pages. It is very practical and does not contain any difficult and obscure theories. After reading this book, you can basically get started with databases
 
 Finally
 
 Just reading books will not make progress, thinking and practice will lead to growth. Self-study programming is a relatively boring process. If there is no positive feedback, the enthusiasm for learning will be very low. It is easy to be suppressed, so you should actively participate in relevant technical circles, try to answer novice questions within your ability, seek help from the experts in the circle, be good at summarizing what you have learned, and share it with more people. People, remember, you are not fighting alone.

The above is the detailed content of What should newbies learn Python?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template