Joke Collection Website - News headlines - What introductory knowledge should you learn to learn Python from scratch?
What introductory knowledge should you learn to learn Python from scratch?
As for how to quickly learn Python with zero basic knowledge, Baidu has many questions and answers. You can check it out on Baidu. I think from the perspective of personal self-study, it should be understood from the following aspects:
1 Why choose to learn python?
According to statistics, more people with zero foundation or non-professionals learn Python. According to the HackerRank developer survey report in May 2018 (see picture), Python ranks first and has become the most popular programming language. Python is famous for its elegance and simplicity, and has a low entry threshold. You can engage in positions such as Linux operation and maintenance, Python Web website engineer, Python automated testing, data analysis, artificial intelligence, etc. Salaries are on the rise.
2 What preparations are needed to get started with python?
2.1 Mental preparation. Programming is a technology, or a craft. Just like calligraphy, painting, musical instruments, sculpture, etc., behind the proficiency of skills must be a long period of repeated practice. Don’t believe in a quick fix of a few weeks, and don’t rush things. The world of programming is vast, so please keep an awe-inspiring attitude to learn, and take every line of code and even every character you write seriously. Pack up your mentality and set off towards the world of programming. The first step is crucial, as it determines whether a beginner will move from getting started to becoming proficient or from getting started to giving up. Choose a suitable entry path and stick to it.
2.2 Configure the Python learning environment. Choose Python2 or Python3? Many people get confused when getting started. The two are just program incompatible, there is no big difference in thinking, and there are not many grammatical changes. Whichever one you choose to start with will have no big impact. If you still can't decide, please choose Python3, after all, this is the future trend.
How to choose an editor? Similarly, we recommend the pycharm community version, which is simple to configure, powerful, time-saving and worry-free to use, friendly to beginners, and completely free! Other editors such as notepad, sublimeText 3, vim and Emacs are not recommended.
Operating environment? Python supports all existing mainstream operating platforms, whether it is windows, mac or linux, they can all run Python well. And the latter two both come with a Python environment by default.
2.3 Choose self-study books. The content of the books I recommend is from the shallower to the deeper. It is recommended to read and study in this order:
2.3.1 "Python Concise Tutorial". This is a concise and concise introductory tutorial on Python, simple and straightforward, no nonsense. Even if you have no foundation, you can read it in two days just like reading a novel. Suitable for beginners to quickly understand grammar.
2.3.2 "Python Tutorial" written by Liao Xuefeng. Mr. Liao's tutorials cover all aspects of Python knowledge. The content is more systematic and in-depth. After you have a certain foundation, you will gain more from learning.
2.4 Learn to install packages. There are many extension packages in Python. There are two methods to install these packages:
2.4.1 Use pip or easy_install.
1) Find the required package online and download it. eg. rsa-3.1.4.tar.gz;
2) Decompress the file;
3) Use the command line tool cd to switch to the directory of the package to be installed and find the setup .py file, and then enter python setup.py install
2.4.2 Without pip or easy_install, open cmd directly and type pip install rsa.
3 The improvement stage requires perseverance and endurance.
After completing the basic learning at the introductory stage, you will often fall into a bottleneck period, and it is difficult to further improve your programming level by watching tutorials. At this time, what is needed is repeated practice and a lot of practice. You can start from the examples and homework questions in the book, then write small program fragments, and then write the complete project. We have collected some practice questions and websites. You can choose appropriate exercises to do according to your own stage. It is suggested that it is best to pick one or two series to focus on, rather than just dabbling in them.
3.1 Do more exercises. Recommended website exercises:
crossin programming classroom examples: Compared with the basic exercises in the programming classroom that focus on a single knowledge point,
programming examples train the integration of basic knowledge;
hackerrank: Part of the difficulty of Python is gradual, in line with the learning curve
Lab building: improving programming level starts from doing projects;
codewar: a community-based programming practice website, with content from easy to difficult;
leetcode: Preparation for programming interviews, slightly difficult for beginners;
Niuke.com: Provides written test questions for major companies such as BAT;
codecombat: Provides one side Programming while gaming;
projecteuler: a pure programming practice website;
100 examples of novice tutorials: basic exercises based on py2;
3.2 Communicate more when encountering problems .
3.2.1 Make good use of search engines.
3.2.2 Turn to major websites for help. Recommendation
stackoverflow: This is a programmer’s knowledge base;
v2ex: a very good programming community in China, which not only includes programs, but also includes programmers’ lives;
segmentfault: A website focusing on programming Q&A;
CSDN, Zhihu, Jianshu, etc.
3.2.3 Join relevant QQ, WeChat groups, Baidu knows. If you don’t understand, you can ask for advice at any time.
- Previous article:Theme slogan of the group's 10th anniversary activities
- Next article:What are the promotional slogans for Civilized Travel?
- Related articles
- Highlights of prestigious schools, what famous buildings are there in Tsinghua University?
- The volunteer asked the mayor how to prove that you are the mayor, and how did the mayor respond?
- What should I do to take my children to Tiananmen Square?
- Station slogan
- The inspirational slogan of the sales shop is fluent and magnificent (2)
- What is the definition and type of land subsidence?
- What time does Puyang Youth Taxi Company go to work?
- Tips for heatstroke prevention in summer (popular 60 sentences)
- How to make cardboard goldfish headdress
- Tips for children to care for books