A cherry blossom rain (Python implementation)

content

1 Brocade short love long

1.1 Love is long and paper is short, and I still kiss you thousands of times

1.2 Short and long love

2 A Cherry Blossom Rain 

3 Python complete 


1 Brocade short love long

1.1  Love is long and paper is short, and I still kiss you thousands of times

Why did you choose this title? It borrowed from the love letter written by Premier Zhou to his wife , and kissed you thousands of times .

Let’s review it first, I don’t know how many times I have read it, and I will share it with you.

overtake:

Yesterday, after you left, you fell asleep dimly, and it was almost dusk when you woke up. Dinner is filled with porridge and ham. After dinner, read several Tang poems and eat one citrus seed. Go to bed at ten o'clock and take two packs of sleeping pills. This morning, I woke up at 5:30 and went back to sleep at 6:00. At 8:00 I rinsed my mouth and ate two slices of bread. Sun De and Hu Guangbi came to watch, and Gai passed by to set up a cement factory in Jiading. Afterwards, Dr. Wang even praised the bag, and the pain was relieved. You can go down to the ground in about five or six days, just waiting for your women to give birth. I feel less hard places, and it is easier to sleep on my side than before. Although the weather is hot, I can still meditate. I hope that you will be photographed and kissed thousands of times.
                                                                                                                             —— Xiang

  Come:

Thinking of you, I received a letter from Tailong, knowing that you slept well last night and that you were not affected by many conversations during the day. Your suspenseful heart felt relieved and relieved!
Really, since you were admitted to the hospital, I have The mind, body and spirit are always in unease and suspense, like a heavy stone pressing down. Especially in the previous week, anxiety hit my heart even more, so I couldn't help but go to see you enthusiastically, may I be able to pay attention to your condition in time and be able to help you!
Now, you are getting better day by day , and I'm about to be discharged from the hospital, I'm so happy! Although it shouldn't be exaggerated to say that life is like a year, it does feel like a long and heavy day - if I hadn't seen you. I hope these days will pass faster, I hope you, and you are welcome to leave the hospital as scheduled. I think when you come back, I can put down a heavy stone that is loaded inside and outside my body and mind, and get liberated. What kind of happiness will I be! I wo
n't see you tomorrow, and I don't plan to come again. I wholeheartedly welcome you back, I We have begun to tidy up our house to welcome you. Now I just want to remind you. Before leaving the hospital, you must ask Wang Daqu in detail, and you should pay attention to the various matters that should be paid attention to in the future
. Such as brother and give him medicine. Every time I love you, I still kiss you thousands of times!
                                                 

                                                                                                                       ——Yingmei

1.2 Short and long love

The reason for the story is that my good friend told me last night that the girl he was chasing didn't want him, and it was most likely that his looks couldn't pass that hurdle. (In this face-seeing era, I can't help but sigh. I usually see that girl with a cold expression to him. I know the result is a bit bleak, so I thought of the story of Premier Zhou Enlai and his wife from the beginning.)

Then I said casually: "You went to her with the wind, but now it's time to leave."

The next second he cried, and I realized I wasn't comforting him. Then I said to him: "I know that you are very sad and sad now, and I can understand it very well. After all, I have also been broken-hearted, and I can understand you in particular; but, ah, the love you prayed for, you will not be truly happy, and in the end I was moved You are the only one. Don't be sad, your girlfriend can't catch up, you still have good friends, I will always be with you, the road ahead is still long. What we need to do now is to work hard together, you will find your future The right person, the person who doesn't care about your appearance, the person who understands your inner self, when the flowers you watered with sweat bloom, the butterflies will come spontaneously. "

Suddenly I remembered one of my thoughts when I was in love before:

                      brocade short love long

It is only said that people take tea and cool, how do you feel that Jin is short and affectionate?

When it comes to tears, is it what Mingyue's heart desires?

2 A Cherry Blossom Rain 

Last time we shared the super happy cherry blossom rain: romantic encounter - cherry blossom rain in Pingba, Guizhou (realized by Matlab)

This time, my heart is also uncomfortable for him, and I am not happy in my heart, so I will record my sad feelings.

3 Python complete 

import turtle as T
import random
import time

#=======画樱花的躯干(60,t)===============
T.title('凋落的樱花')
def Tree(branch, t):
    time.sleep(0.0005)
    if branch > 3:
        if 8 <= branch <= 12:
            if random.randint(0, 2) == 0:
                t.color('snow')  # 白
            else:
                t.color('lightcoral')  # 淡珊瑚色
            t.pensize(branch / 3)
        elif branch < 8:
            if random.randint(0, 1) == 0:
                t.color('snow')
            else:
                t.color('lightcoral')  # 淡珊瑚色
            t.pensize(branch / 2)
        else:
            t.color('sienna')  # 赭(zhě)色
            t.pensize(branch / 10)  # 6
        t.forward(branch)
        a = 1.5 * random.random()
        t.right(20 * a)
        b = 1.5 * random.random()
        Tree(branch - 10 * b, t)
        t.left(40 * a)
        Tree(branch - 10 * b, t)
        t.right(20 * a)
        t.up()
        t.backward(branch)
        t.down()

#=============掉落的花瓣===================
def Petal(m, t):
    for i in range(m):
        a = 200 - 400 * random.random()
        b = 10 - 20 * random.random()
        t.up()
        t.forward(b)
        t.left(90)
        t.forward(a)
        t.down()
        t.color('lightcoral')  # 淡珊瑚色
        t.circle(1)
        t.up()
        t.backward(a)
        t.right(90)
        t.backward(b)

#=======绘图区域============
t = T.Turtle()
# 画布大小
w = T.Screen()
t.hideturtle()  # 隐藏画笔
t.getscreen().tracer(5, 0)
w.screensize(bg='wheat')  # wheat小麦
t.left(90)
t.up()
t.backward(150)
t.down()
t.color('sienna')

#=====画樱花的躯干===========
Tree(60, t)
# 掉落的花瓣
Petal(200, t)
w.exitonclick()

Guess you like

Origin blog.csdn.net/weixin_46039719/article/details/123369371