Python It's an object-oriented interpretive programming language , Source code and interpreter CPython comply with GPL agreement ,Python Concise grammar .
Concise grammar , So we use a small amount of Python What interesting things can code do ? reminder : A must see at the end of the article .
One 、 Show your love
1、 Graphics are all made up of a series of points (X,Y) The curve formed , because X,Y Satisfy a certain relationship , So we can build models , Build the expression expression, When satisfied , Two for loop (for X in range;for Y in range) It prints every row and column .
2、Python Code and comments :
Clear the way of thinking, a line of code to achieve :
It looks like three lines , stay IDE Writing in Chinese Python The code can be implemented , Pictured :
This is a static graph , The results are not satisfactory , So how do we make it into a dynamic graph and realize the graphic expression ?( You can change the contents of the letters by yourself )
The code changes as follows :
Two 、 Express query tool
1、 this Python Small projects require json And requests Two libraries , You also need to call API.
2、 Code annotation :
3、 Query effect :
!
3、 ... and 、Python Crawler entry level tutorial picture crawling
1、 A lot of learning because of interest Python Most of my friends see other people crawling video 、 Picture bar , I used to see people crawling for little movies , I have dynamics .
2、Python Code :
3、 design sketch
Four 、 Fozu town building
The code is a little bit of that ...... But the effect came out . Empathy , You can draw other graphics , This requires your own imagination .
5、 ... and 、 Do animation hand drawing
Example :
Source code :
6、 ... and 、( Press shaft ) Watch violence again and again
Even look, I believe everyone has played , Not much introduction . To complete its auxiliary , First of all, what can we think of ?
Image recognition , Mouse simulation . Image recognition does not need any difficult algorithm .OpenCV This divine framework , It's easy to help us , Be good at using tools .
from python win32 Of API You can simulate clicking with the mouse .
Want to crack QQ Look again and again , must config.py Change the configuration in to QQ Look at the corresponding configuration again and again , But I won't say what the configuration is . If you can do it by yourself , Just have fun , Don't preach , If you must show your teeth and claws everywhere ... I really won't say anything , After all, Xiaobian is doing the same .
Source code :