Tanabata is coming. Why don't you confess to me?

Posted by amy_ewe on Sun, 26 Dec 2021 21:32:07 +0100

Hi, everyone. Only when you open the calendar of the whole year will you suddenly find: Wow! Every month there is a Valentine's day with different themes.

From "Diary Valentine's Day" on January 14 to "hug Valentine's Day" on December 14. Although the themes are different, the sweetness is the same.

As Shakespeare once said: love makes cowards bold, but makes warriors cowards. But often someone has become a coward before he has tasted love.

Tanabata is coming soon. I hope you can take the opportunity of "Valentine's Day" to turn yourself into a warrior and make a bold confession. What if it works?

Python implements sketch expression

1. Preparation conditions

① Install pycharm
② Install Python
③ Find a boyfriend / girlfriend

2. Get your girlfriend / boyfriend photos ready

👫 The couple photo cheat is ready as follows:

3. Python code to achieve sketch effect

After running, the effects are as follows:

Python realizes hand drawn love confession

1. Preparation conditions

① Install pycharm
② Install Python

2. Python code to achieve hand drawn love

The implementation code is as follows:

from turtle import *

def go_to(x, y):
    up()
    goto(x, y)
    down()


def big_Circle(size):  # Function to draw the big circle of the center
    speed(1)
    for i in range(150):
        forward(size)
        right(0.3)


def small_Circle(size):  # Function to draw the small circle of the center
    speed(1)
    for i in range(210):
        forward(size)
        right(0.786)


def line(size):
    speed(1)
    forward(51 * size)


def heart(x, y, size):
    go_to(x, y)
    left(150)
    begin_fill()
    line(size)
    big_Circle(size)
    small_Circle(size)
    left(120)
    small_Circle(size)
    big_Circle(size)
    line(size)
    end_fill()


def arrow():
    pensize(10)
    setheading(0)
    go_to(-400, 0)
    left(15)
    forward(150)
    go_to(339, 178)
    forward(150)


def arrowHead():
    pensize(1)
    speed(1)
    color('red', 'red')
    begin_fill()
    left(120)
    forward(20)
    right(150)
    forward(35)
    right(120)
    forward(35)
    right(150)
    forward(20)
    end_fill()


def main():
    pensize(2)
    color('red', 'pink')
    # getscreen().tracer(30, 0) #When you uncomment, the pattern displays quickly
    heart(200, 0, 1)  # Draw the first heart. The first two parameters control the position of the heart, and the last parameter of the function can control the size of the heart
    setheading(0)  # Orient the brush toward the positive x axis
    heart(-80, -100, 1.5)  # Draw a second heart
    arrow()  # Draw a straight line through the two hearts
    arrowHead()  # Draw the arrow of the arrow
    go_to(400, -300)
    write("author: ITester", move=True, align="left", font=("Song typeface", 30, "normal"))
    done()


main()

After running, the effect of dynamic hand-painted love is realized.

Finally: tutorials that may help you

The following is a knowledge architecture diagram of the development direction of software test engineers.

I hope you can benefit a lot from this growth process. It can be said that this process will make you miserable, but as long as you get through it. Life will be much easier in the future. As the saying goes, everything is difficult at the beginning. As long as you take the first step, you will have achieved half of your success. The ancients said that "no small step, no even a thousand miles." When you look back on this journey after completion, you will certainly feel a lot.

Due to the limited size of CSDN uploaded pictures, friends in need can pay attention to my official account: programmers two black, reply 1, you can get the original picture.

The following is a supporting software testing resource package:

The above are some supporting resources, which should be the most comprehensive and complete war preparation warehouse for friends of software testing. In order to better sort out each module, I also refer to many high-quality online blogs and projects, and strive not to miss every knowledge point. Many friends reviewed these contents and got offer s from BATJ and other major manufacturers, This warehouse has also helped many learners of software testing. I hope it can also help you.

Pay attention to my WeChat official account: programmers two black, free access!

The most difficult time is when we are not far from success! If you don't want to experience the feeling of giving up after a few days when you can't find materials and no one answers questions, you can join our group: 785128166. Let's discuss and exchange learning together.

Wonderful recommendation

Working in Ali for 6 years, the voice of a 29 year old female software testing engineer

Interview often ask: TCP three handshakes and four waves

Topics: Python software testing Testing