Python is an object-oriented, interpretive programming language, with the source code and interpreter CPython adhering to the GPL, and the Python syntax is concise and clear.
The syntax is concise and clear, so what are some interesting things we can do with a small amount of Python code?
First, painting love Confession
1, the graph is composed of a series of points (x, y) of the curve, because X, y satisfies a certain relationship, so we can build a model, set up expressions expression, when satisfied, two for loop (for X in Range;for Y in range) will be printed per row per column.
2. Python Code and comments:
A line of code to clarify the idea of implementation:
It looks like three rows, and writing a line of Python code in the IDE can be done,
This diagram is a static diagram, the effect is not satisfactory, then we make it into a dynamic diagram and to achieve the text of the confession? (You can change the letter content yourself)
The code after the change is as follows:
Second, the Python crawler entry-level tutorial image crawl
1, many because of interest and learn Python most of the friends are to see others crawl video, pictures it, I have seen others crawl small films, I have a kinetic
2. Python Code:
3.
Third, Buddha Town Building
The code is a little bit ... But the effect came out. In the same vein, you can draw other graphics, which requires your own imagination.
Four, Piglet Paige
Example:
Source:
Python has a lot of fun to play, at the beginning of the study, you can learn from the big anecdotes of these small cases to start, will bring curiosity.
Finally share a little python poison chicken soup:
1, do not have the skills, either take the time to buy, or spend money to buy.
2, do not stop, the update of skills is also very fast.
3, book + video + Time + combat + teacher Answer = high salary python
I have a public number, and I often share some of the stuff about Python technology. If you like my share, you can use the search "Python language learning" to follow
Welcome to join thousands of people to exchange questions and answers skirt: 699+749+852
A few Python small cases, fall in love with Python programming!