Python is an object-oriented interpreted programming language. The source code and interpreter CPython comply with the GPL protocol. Python syntax is simple and clear.

The syntax is clean and concise, so what interesting things can we do with a little Python code? Warm reminder: the end of the article must see.

First, painting love confession

1. All graphs are curves composed of a series of points (X, Y). Since X and Y meet certain relations, we can establish the model and establish expression. For Y in range) will print each row and each column.

2. Python code and comments:

Clear thinking a line of code to achieve:

It looks like three lines, which can be achieved by writing one line of Python code in the IDE, as shown below:

This is a static graph, the effect is not satisfactory, so we make it into a dynamic graph and realize the expression of text and text? (You can change the letter content)

The changed code is as follows:

The Python crawler is an introductory tutorial for image crawling

1. Most of my friends who learn Python out of interest mostly watch videos and pictures of others crawling. I only became dynamic when I saw others crawling in small movies before.

2. Python code

3. Effect drawing

Three, Buddha town building

The code has a bit of that…… But the effect is there. Similarly, you can draw other shapes, which requires your own imagination.

Peppa Pig

Example:

The source code:

There are a lot of interesting ways to play Python, and when you start learning it, you can start with interesting examples that will arouse your curiosity.