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