Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What introductory knowledge should Python zero foundation learn?
What introductory knowledge should Python zero foundation learn?
Baidu has a lot of questions and answers about how to learn Python quickly from scratch. You can have a look. I think from the perspective of individual self-study, we should understand it from the following aspects:

1 Why did you choose to learn python?

According to statistics, non-professionals learn python more. According to the HackerRank developer survey report 2065438+May 2008 (see photo), Python ranked first and became the most popular programming language. Python is famous for its elegance and simplicity, and its entry threshold is low. Can be engaged in Linux operation and maintenance, Python website engineer, Python automation test, data analysis, artificial intelligence and other positions, the salary is on the rise.

2 What preparations do you need to get started with python?

2. 1 psychological preparation. Programming is not only a technology, but also a craft. I like calligraphy, painting, musical instruments, sculpture, etc. It must be a skill that took a long time to practice again and again. Don't believe in quick success for a few weeks, and don't rush for success. The world of programming is boundless, so please keep an awe-inspiring attitude to learn and take every line of code, even every character, seriously. Pack your bags and set out for the world of programming. The first step is very important, which is related to beginners from entry to mastery or from entry to giving up. Choose a suitable way to enter the business and stick to it.

2.2 configure Python learning environment. Choose Python2 or Python3? Many people will struggle when they get started. The two are just incompatible programs, with little difference in thought and little change in grammar. It doesn't make much difference to choose any one to start with. If you can't decide, please choose Python3, after all, this is the future trend.

How to select an editor? Also recommend the pycharm community edition, which is simple in configuration, powerful, time-saving and worry-free, friendly to beginners and completely free! Other editors such as notepad++, sublimeText 3, vim, Emacs, etc. are not recommended.

Operating environment? Python supports all existing mainstream operating platforms, whether windows, mac or linux, and can run Python well. By default, they all have their own Python environment.

2.3 Choose self-study books. The content of the book I recommend goes from simple to deep. I suggest reading and studying in order:

2.3. 1 Python concise tutorial. This is a concise Python introductory tutorial, simple and straightforward, no nonsense. Even if there is no foundation, you can read it in two days just like reading a novel. Suitable for getting started and understanding grammar quickly.

2.3.2 Python tutorial written by Liao Xuefeng. Teacher Liao's tutorial covers all aspects of Python knowledge, which is systematic and has a certain depth. With a certain foundation, you will gain more in your study.

2.4 Learn to install packages. There are many expansion packages in Python, and there are two ways to install these packages:

2.4. 1 use pip or easy_install.

1) Find the required package online and download it. For example, RSA-3.1.4.tar.gz;

2) decompress the file;

3) Switch the command-line tool cd to the directory of the package to be installed, find the setup.py file, and then enter Python setup.pyinstall.

2.4.2 without pip or easy_install, directly open cmd and click pip install rsa.

The promotion stage requires perseverance and endurance.

After completing the basic learning in the introductory stage, you will often fall into a bottleneck period, and it is difficult to further improve your programming level by watching the tutorial. What is needed at this time is repeated practice and a lot of practice. You can start with the examples and assignments in the book, then write a small program fragment and then write a complete project. We collected some exercises and websites. You can choose the right exercise according to your own stage. It is suggested that it is best to choose one or two series to focus on instead of dabbling.

3. 1 Do more exercises. Recommended website exercises:

Example of Crossin programming class: Compared with programming class, basic exercises focus on a single knowledge point.

Training and integrating basic knowledge through programming examples;

Hackerrank:Python the difficulty of Python is gradual and conforms to the learning curve.

Laboratory construction: improving programming level starts with doing projects;

Codewar: community-based programming practice website, the content is from easy to difficult;

Leetcode: Preparing for a programming interview is a bit difficult for beginners;

Bovine family Com: provide written test questions for BAT and other big manufacturers;

Codecombat: provides programming while playing games;

Projecteuler: pure programming practice website;

Rookie Tutorial 100 Case: Basic exercises based on py2;

3.2 Communicate more when encountering problems.

3.2. 1 Make good use of search engines.

3.2.2 Ask for help from major websites. recommend

Stackoverflow: This is a programmer's knowledge base;

V2ex: A very good programming community in China, which contains not only programs, but also the life of programmers.

Segmentfault: a website dedicated to programming question and answer;

CSDN, Zhihu, Jian Shu, etc.

3.2.3 Join relevant QQ and WeChat groups, and Baidu knows. You can always ask if you don't understand.