Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Python made a romantic statement


Jun 01, 2021 Article blog



This article was reproduced to Know ID: Charles (Bai Lu) knows his personal column

Download the W3Cschool Mobile App, 0 Foundation Anytime, Anywhere Learning Programming >> Poke this to learn

Lead

Don't be fooled by the photos above...

Python doing the picture above?

inexistent...

Just recently saw a lot of jQuery and H5 confession code...

Thinking about using Python should be okay?

Just have a try~~~


Declare in advance

T_T please don't trust me in this aspect of the aesthetic level;

T_T code is for informational purposes only, please optimize yourself before use, otherwise the probability of rejection may be as high as 99.99%.


Related documents

Baidu web download link: https://pan.baidu.com/s/1dc6-tFgBpAgnQUbci87l9Q

Password: yyrw


Develop tools

Python version: 3.5.4

Related modules:

Jieba modules, scipy modules, wordcloud modules, pygame modules, matplotlib modules, and some Python modules come with them.

Environment construction

Install Python and add it to the environment variable, and pip installs the relevant modules that are required.

Try one: Draw a white tree

The specific principle can be found in the source code

In fact, it's just a recursive one

How to use it:

Run the Unburden.py file in the cmd window:

 Python made a romantic statement1

effect:


Try two: Word Cloud

The principle is also very simple not to say much

(see source code for more information T_T)

How to use it:

Run the Confession.py file in the cmd window:

 Python made a romantic statement2

Effect map:

(1) English love poems

 Python made a romantic statement3

(2) Zhou Dong's song

 Python made a romantic statement4


more

There really isn't much energy to optimize these things...

So,

If you really use it...

Be sure to refine yourself before you use it!!!

T_T