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?

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:

For more interesting case code, visit the original article:Blog.csdn.net/Python_xiao…