Learn Python The Hard Way to Learn (23)-read some code

Source: Internet
Author: User

You have spent a week learning the list in the previous exercise. Now we will spend another week reading some code online. This exercise is scary, just as I threw you into deep water for a few days, so that you can read some real project code. The goal is not to let you understand the code, but to teach you the following skills:
Find the code you need
Read the code and find the files.
Try to understand the code you found
Based on your ability, you may not understand the code you found, but you can understand what the code in the project is.

When doing this exercise, you can think of yourself as a human scientist to come to a new world and only know some local languages. You must survive in this environment. Of course, you don't have to face survival problems because the Internet is not a jungle.

The following is what you want to do:
Open bitbucket.org and search for python.
Ignore python3 projects.
Select a project and click to enter.
Click the Source tab to go to the directory and find the file ending with py. (Do not check setup. py)
Read this file from start to end to record what you think it works.
If you see some interesting symbols or characters, record them and understand them later.
In this way, your job is to use the knowledge you know to read the code, first read it roughly, then read it in detail, or try to read the hard part.

Try the following three websites:
Github.com
Launchpad.net
Koders.com
On these websites, you will find some files ending with. c. You don't need to worry about them. We only pay attention to the files ending with. py.


Author: lixiang0522

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.