First of all, learning python must be practical-oriented! Blindly watching the tutorials, the result is mostly a taste, from getting started to giving up.
I want to tell you my experience, how to get started with python within a month!
1. [why] Why do you want to learn python?
reptile? data analysis? machine learning? Or something else?
Before looking for a python tutorial to prepare, you must ask yourself, why should I learn python?
Python has become more and more popular in recent years, and many children's shoes or workplace partners want to improve their skills - learn python. This is a very good thing, but the problem is that many people don't know what to do with learning python, so they read all the trivial, difficult and obscure, and long-winded articles, and it is easy to fall into the predicament of not being able to learn. Must be targeted and selective learning!
The purpose of targeted learning is to learn on demand and apply what you have learned.
If you want to be a carpenter, you have to learn how to use a plane and a lathe. There is no need for a bricklayer to waste this effort. In the same way, when you are interested in web crawlers and have the urge to crawl a web page, it is easiest to learn python at this time.
I am doing data analysis work, and my original intention of learning python is to use python's powerful and flexible data analysis capabilities. Python does not have high syntax requirements for data analysis. As long as you can understand the basic logical structure, data type, data structure, operator, function, and library, you can apply it to actual projects. So I don't need to spend a lot of effort on functions that are not commonly used in data analysis such as classes, web programming, modules, threads, etc. If I really encounter these contents, I will check the information to find out.
2. 【what】What kind of course to choose?
After clarifying why you are learning python, you must choose the appropriate book tutorial. It is undeniable that there are already too many python introductory books on the market, as well as more online tutorials. I only recommend to everyone the official python documentation, which has been localized not long ago, so you can easily learn the latest and most complete python knowledge. If you have the ability to read English documents, then choose English documents, after all, the first-hand content is more professional.
Of course, there are too many knowledge points in official documents, and it is difficult for beginners to find the content to learn. At this time, you need to check the python requirements of various professional fields.
If you are planning to engage in data science, you might as well take a look at the kaggle data science micro-tutorial, which will talk about the python knowledge needed for data science, and then compare the official python documents with knowledge points one by one.
If you want to do crawling work, you might as well buy a high-rated python crawling book online. Generally speaking, there will be a basic part of python in it. Similarly, you only need to find this part of knowledge in the official documents to learn.
Targeted learning of python knowledge in official documents not only saves time, but you will find it easier to understand because you learn with questions.
3. [how] How to learn python?
Other answers also mentioned learning python in repeated exercises, which I agree with very much. Output is the best input. Although programming languages focus on logic, they require learners to constantly type codes.
From the very beginning, you have to learn how to build a python environment and choose what kind of development environment (IDE). These can be checked on the Internet, and it can be done in two or three days if you are slower, and less than a day if you are faster. In short, this is the first step in learning python and the beginning of practice.
For every piece of code in the official document, I suggest typing it yourself. For example, if you see the string section, after understanding the definition of the string, the document will give sample code and running results
Follow the sample code and practice it in your programming environment. Don't copy and paste. It is not a good thing to be overconfident in your own fire-eye adamantium.
4. [when] how to set time to learn python?
Don't pull a long front when learning python. The longer the plan is made, the inertia and procrastination of people will emerge.
My advice:
- Make a 5-8 week study plan
- Study 5 days a week
- about 3 hours a day
The reason is:
The time is not long 1~2 months, it is easier to persist
Eligible for the study period of a university course
Short-term high-intensity learning is conducive to the formation of knowledge coherence, and a deeper understanding of python
Of course, this requires a supervision mechanism. You can check in on social platforms, make your own study schedule, or study with friends.
Combining online information and python official documents, we have compiled a 30-day python learning plan for your reference.
Day 1
- Introduction to Python - History of Python / Advantages and Disadvantages of Python / Application Fields of Python
- Python environment construction
day 2
- use the python interpreter
- A brief introduction to python syntax
3rd day
- Lexical structure
- Operators and Expressions
day 4
- python data structure list/string/tuple
day 5
-
Python Data Structure Dictionary/Collection
Day 6 -
python process control 1
-
if statement
-
for loop
-
while loop
day 7
- python process control 2
- continue statement
- break statement
- pass statement
Day 8~9
- format string
- read and write files
Day 10~12
- python function
- Lambda expressions
- coding style
day 13
-
python modules
day 14 -
iterator
-
Builder
-
generator expression
Day 15~16
- Errors and exceptions [Reference]
Day 17~19
- Object-Oriented Programming
Day 19~20
- Standard library usage
- date and time
- math
- operating system interface
day 21
- Install Python modules
Day 22~23
- Virtual Environments and Packages
day 24
- Multithreading
Day 25~30
- training questions
Technical reserves about Python
If you are ready to learn Python or are currently learning, the following should be useful to you:
① Learning roadmap for all directions of Python, clear what to learn in each direction
② More than 100 Python course videos, covering essential foundations, crawlers and data analysis
③ More than 100 practical cases of Python, learning is no longer just theory
④ Huawei Exclusive Python manga tutorials are produced, and
mobile phones can also learn
There is a way to get it at the end of the article
1. Learning routes in all directions of Python
The route of all directions in Python is to organize the commonly used technical points of Python to form a summary of knowledge points in various fields. Its usefulness lies in that you can find corresponding learning resources according to the above knowledge points to ensure that you learn more comprehensively.
2. Python course video
When we watch videos and learn, we can’t just move our eyes and brain without using our hands. A more scientific learning method is to use them after understanding. At this time, the hands-on project is very suitable.
Three, Python actual combat case
Optical theory is useless, you have to learn to follow along, and you have to do it yourself, so that you can apply what you have learned to practice. At this time, you can learn from some actual combat cases.
4. Python comic tutorial
Use easy-to-understand comics to teach you Python, making it easier for you to remember and not boring.
5. Internet enterprise interview questions
We must learn Python to find high-paying jobs. The following interview questions are the latest interview materials from first-line Internet companies such as Ali, Tencent, and Byte, and Ali bosses have given authoritative answers. After finishing this set The interview materials believe that everyone can find a satisfactory job.
This complete set of learning materials for Python has been uploaded to CSDN. If you need it, you can also scan the official QR code of CSDN below or click the WeChat card at the bottom of the home page and article to get the collection method. [Guaranteed 100% free]