Can and favorite people together is a how wonderful and happy thing, but the reality is not so, like I can’t do, we often feel like that person special good, also is the eyes of the beholder, even if both like each other, and some people are ashamed to express, or afraid to be refused and missed each other, love is so playing tricks on people. There is a good song written, love needs courage, it is true, I hope you can see this, brave to take the first step, brave to pursue their own happiness, harvest beautiful love. Surprise at the end of the article.

I’m lucky to meet you

❤ ❤

If there is a chance, I would like to drink milk tea with you, watch movies with you, go home in the evening wind, walk the rest of the way with you, I mean: with you.

Full source code:

In the code, you can change the copy and the name, the name of the person you like or the name of the person you love, Ness.

import turtle
import time


# Clear screen function
def clear_all() :
    turtle.penup()
    turtle.goto(0.0)
    turtle.color('white')
    turtle.pensize(800)
    turtle.pendown()
    turtle.setheading(0)
    turtle.fd(300)
    turtle.bk(600)


# Reposition the turtle
def go_to(x, y, state) :
    turtle.pendown() if state else turtle.penup()
    turtle.goto(x, y)


Draw a line #
If # state is true, the turtle returns to the origin; if false, it does not return to the original starting point
def draw_line(length, angle, state) :
    turtle.pensize(1)
    turtle.pendown()
    turtle.setheading(angle)
    turtle.fd(length)
    turtle.bk(length) if state else turtle.penup()
    turtle.penup()


# the arrow feather
def draw_feather(size) :
    angle = 30  # Angle of the arrow
    feather_num = size // 6  # Number of feathers
    feather_length = size // 3  # Feather length
    feather_gap = size // 10  # Feather spacing
    for i in range(feather_num):
        draw_line(feather_gap, angle + 180.False)  # Arrow handle, do not retrace
        draw_line(feather_length, angle + 145.True)  # Wings, turn back
    draw_line(feather_length, angle + 145.False)
    draw_line(feather_num * feather_gap, angle, False)
    draw_line(feather_length, angle + 145 + 180.False)
    for i in range(feather_num):
        draw_line(feather_gap, angle + 180.False)  # Arrow handle, do not retrace
        draw_line(feather_length, angle - 145.True)  # Wings, turn back
    draw_line(feather_length, angle - 145.False)
    draw_line(feather_num * feather_gap, angle, False)
    draw_line(feather_length, angle - 145 + 180.False)


# painting love
def draw_heart(size) :
    turtle.color('red'.'pink')
    turtle.pensize(2)
    turtle.pendown()
    turtle.setheading(150)
    turtle.begin_fill()
    turtle.fd(size)
    turtle.circle(size * -3.745.45)
    turtle.circle(size * -1.431.165)
    turtle.left(120)
    turtle.circle(size * -1.431.165)
    turtle.circle(size * -3.745.45)
    turtle.fd(size)
    turtle.end_fill()


def hart_arc() :
    for i in range(200):
        turtle.right(1)
        turtle.forward(2)


# draw arrows
def draw_arrow(size) :
    angle = 30
    turtle.color('black')
    draw_feather(size)
    turtle.pensize(4)
    turtle.setheading(angle)
    turtle.pendown()
    turtle.fd(size * 2)


An arrow through the heart
# The head of the arrow is not drawn, but replaced with a turtle
def arrow_heart(x, y, size) :
    go_to(x, y, False)
    draw_heart(size * 1.15)
    turtle.setheading(-150)
    turtle.penup()
    turtle.fd(size * 2.2)
    draw_heart(size)
    turtle.penup()
    turtle.setheading(150)
    turtle.fd(size * 2.2)
    draw_arrow(size)


# Draw little people launching hearts
def draw_people(x, y) :
    turtle.penup()
    turtle.goto(x, y)
    turtle.pendown()
    turtle.pensize(2)
    turtle.color('black')
    turtle.setheading(0)
    turtle.circle(60.360)
    turtle.penup()
    turtle.setheading(90)
    turtle.fd(75)
    turtle.setheading(180)
    turtle.fd(20)
    turtle.pensize(4)
    turtle.pendown()
    turtle.circle(2.360)
    turtle.setheading(0)
    turtle.penup()
    turtle.fd(40)
    turtle.pensize(4)
    turtle.pendown()
    turtle.circle(-2.360)
    turtle.penup()
    turtle.goto(x, y)
    turtle.setheading(-90)
    turtle.pendown()
    turtle.fd(20)
    turtle.setheading(0)
    turtle.fd(35)
    turtle.setheading(60)
    turtle.fd(10)
    turtle.penup()
    turtle.goto(x, y)
    turtle.setheading(-90)
    turtle.pendown()
    turtle.fd(40)
    turtle.setheading(0)
    turtle.fd(35)
    turtle.setheading(-60)
    turtle.fd(10)
    turtle.penup()
    turtle.goto(x, y)
    turtle.setheading(-90)
    turtle.pendown()
    turtle.fd(60)
    turtle.setheading(-135)
    turtle.fd(60)
    turtle.bk(60)
    turtle.setheading(-45)
    turtle.fd(30)
    turtle.setheading(-135)
    turtle.fd(35)
    turtle.penup()


# First screen, display text
def page0() :
    turtle.penup()
    turtle.goto(-350.0)
    turtle.color('black')
    turtle.write('I'm lucky to have met you ❤', font=('宋体'.60.'normal'))
    time.sleep(3)


# The second screen shows the little man launching the heart
def page1() :
    turtle.speed(10)
    draw_people(-250.20)
    turtle.penup()
    turtle.goto(-150, -30)
    draw_heart(14)
    turtle.penup()
    turtle.goto(-20, -60)
    draw_heart(25)
    turtle.penup()
    turtle.goto(250, -100)
    draw_heart(45)
    turtle.hideturtle()
    time.sleep(3)


# Last scene, an arrow through the heart
def page2() :
    turtle.speed(1)
    turtle.penup()
    turtle.goto(-200, -200)
    turtle.color('blue')
    turtle.pendown()
    turtle.write('Meimei loves you', font=('wisdom'.50.'normal'))
    turtle.penup()
    turtle.goto(0, -190)
    draw_heart(10)
    arrow_heart(20, -60.51)
    turtle.showturtle()


def main() :
    turtle.setup(900.500)
    page0()
    clear_all()
    page1()
    clear_all()
    page2()
    turtle.done()


main()
Copy the code

2. I LOVE YOU

❤ ❤

Before I met you, I never wanted to get married. After I met you, I got married without thinking of anyone else. – qian zhongshu

Full source code:

import turtle
import math
t=turtle.pen()
t=turtle
t.up()
t.goto(0.150)
t.down()
t.color('red')
t.begin_fill()
t.fillcolor('red')
t.speed(1)
t.left(45)
t.forward(150)
t.right(45)
t.forward(100)
t.right(45)
t.forward(100)
t.right(45)
t.forward(100)
t.right(45)
t.forward(250+math.sqrt(2) *100)
t.right (90)
t.speed(2)
t.forward(250+100*math.sqrt(2))
t.right(45)
t.forward(100)
t.right(45)
t.forward(100)
t.right(45)
t.forward(100)
t.right(45)
t.forward(150)
t.end_fill()
t.goto(-10.0)
t.pencolor('white')
#L
t.pensize(10)
t.goto(-50.0)
t.goto(-50.80)
t.up ()
#I
t.goto(-100.0)
t.down()
t.goto(-160.0)
t.goto(-130.0)
t.goto(-130.80)
t.goto(-160.80)
t.goto(-100.80)
t.up()
#O
t.goto(10.25)
t.down()
t.right(45)
t.circle(25,extent=180)
t.goto(60.55)
t.circle(25,extent=180)
t.goto(10.25)
t.up()
t.goto(75.80)
t.down()
t.goto(100.0)
t.goto(125.80)
t.up()
t.goto(180.80)
t.down()
t.goto(140.80)
t.goto(140.0)
t.goto(180.0)
t.up()
t.goto(180.40)
t.down()
t.goto(140.40)
#U
t.up()
t.goto(-40, -30)
t.down()
t.goto(-40, -80)
t.circle(40,extent=180)
t.goto(40, -30)
t.hideturtle()
a=input(a)Copy the code

3. Record your love days with me

❤ ❤

I’ve been a staunch materialist all my life, but because of you, I want an afterlife. – zhou enlai

Full source code:

Inside the code can copy, name, date change, exclusive emoticons come out.

import turtle
# STR = input(' ')
str = "It's good to have you."
str1 = "2018/10/19 ~ 2021/11/12"
turtle.speed(10)# The higher the brush speed number, the faster the drawing !!!!!!
turtle.setup(1800.700.70.70)
turtle.color('black'.'pink')# Brush color
turtle.pensize(3)   # Brush thickness
turtle.hideturtle() # Hide brushes (first)
turtle.up() # start
turtle.goto(-655, -255) # move the brush to the specified starting coordinate (window center is 0,0)
turtle.down()   # writing
turtle.showturtle() # display brush
# Draw the little man on the left
turtle.goto(-600, -200)
turtle.goto(-600, -120)
turtle.circle(35)
turtle.goto(-600, -200)
turtle.forward(40)
turtle.right(90)
turtle.forward(60)
turtle.hideturtle()
turtle.up()
turtle.goto(-600, -160)
turtle.down()
turtle.showturtle()
turtle.left(90)
turtle.forward(55)
turtle.right(45)
turtle.forward(20)
turtle.hideturtle()
turtle.up()
turtle.goto(-600, -145)
turtle.down()
turtle.showturtle()
turtle.goto(-545, -145)
turtle.left(90)
turtle.forward(20)

# Draw the first heart
turtle.color('pink'.'pink')
turtle.begin_fill()
turtle.hideturtle()
turtle.up()
turtle.goto(-500, -153)
turtle.down()
turtle.showturtle()
turtle.right(90)
turtle.forward(30)
turtle.left(90)
turtle.forward(30)
turtle.left(45)
turtle.circle(10.6.180)
turtle.left(180)
turtle.circle(10.6.180)
turtle.end_fill()
# Next Big heart
turtle.color('pink'.'pink')
turtle.begin_fill()
turtle.hideturtle()
turtle.up()
turtle.goto(-430, -143)
turtle.down()
turtle.showturtle()
turtle.left(135)
turtle.right(90)
turtle.forward(50)
turtle.left(90)
turtle.forward(50)
turtle.left(45)
turtle.circle(17.67.180)
turtle.left(180)
turtle.circle(17.67.180)
turtle.end_fill()

# Third Heart
turtle.color('pink'.'pink')
turtle.begin_fill()
turtle.hideturtle()
turtle.up()
turtle.goto(-315, -133)
turtle.down()
turtle.showturtle()
turtle.left(135)
turtle.right(90)
turtle.forward(70)
turtle.left(90)
turtle.forward(70)
turtle.left(45)
turtle.circle(24.74.180)
turtle.left(180)
turtle.circle(24.74.180)
turtle.end_fill()

# Fourth heart
turtle.color('pink'.'pink')
turtle.begin_fill()
turtle.hideturtle()
turtle.up()
turtle.goto(-187, -133)
turtle.down()
turtle.showturtle()
turtle.left(135)
turtle.right(90)
turtle.forward(70)
turtle.left(90)
turtle.forward(70)
turtle.left(45)
turtle.circle(24.74.180)
turtle.left(180)
turtle.circle(24.74.180)
turtle.end_fill()

# 5 Love
turtle.color('pink'.'pink')
turtle.begin_fill()
turtle.hideturtle()
turtle.up()
turtle.goto(-43.7, -143)
turtle.down()
turtle.showturtle()
turtle.left(135)
turtle.right(90)
turtle.forward(50)
turtle.left(90)
turtle.forward(50)
turtle.left(45)
turtle.circle(17.67.180)
turtle.left(180)
turtle.circle(17.67.180)
turtle.end_fill()

# 6 Love
turtle.color('pink'.'pink')
turtle.begin_fill()
turtle.hideturtle()
turtle.up()
turtle.goto(53.88, -153)
turtle.down()
turtle.showturtle()
turtle.right(90)
turtle.right(225)
turtle.forward(30)
turtle.left(90)
turtle.forward(30)
turtle.left(45)
turtle.circle(10.6.180)
turtle.left(180)
turtle.circle(10.6.180)
turtle.end_fill()

# Draw the little man on the right
turtle.hideturtle()
turtle.up()
turtle.goto(251.28, -255)
turtle.down()
turtle.showturtle()
turtle.goto(196.28, -200)
turtle.goto(196.28, -120)
turtle.left(90)
turtle.circle(35)
turtle.goto(196.28, -200)
turtle.left(180)
turtle.forward(40)
turtle.left(90)
turtle.forward(60)
turtle.hideturtle()
turtle.up()
turtle.goto(196.28, -160)
turtle.down()
turtle.showturtle()
turtle.right(90)
turtle.forward(55)
turtle.left(45)
turtle.forward(20)
turtle.hideturtle()
turtle.up()
turtle.goto(196.28, -145)
turtle.down()
turtle.showturtle()
turtle.right(45)
turtle.forward(55)
turtle.right(45)
turtle.forward(20)

# Draw balloon lines and balloons
# The first balloon
turtle.hideturtle()
turtle.up()
turtle.goto(-265, -133)
turtle.down()
turtle.showturtle()
turtle.goto(-245.0)
turtle.right(135)
turtle.circle(35)
# 2 balloon
turtle.hideturtle()
turtle.up()
turtle.goto(-265, -133)
turtle.down()
turtle.showturtle()
turtle.goto(-305.80)
turtle.circle(40)

Fill a balloon to the left
turtle.hideturtle()
turtle.up()
turtle.goto(-265, -133)
turtle.down()
turtle.showturtle()
turtle.goto(-350.0)
turtle.circle(40)


# 3 balloon
turtle.hideturtle()
turtle.up()
turtle.goto(-137, -133)
turtle.down()
turtle.showturtle()
turtle.goto(-167.0)
turtle.circle(35)
# 4 balloon
turtle.hideturtle()
turtle.up()
turtle.goto(-137, -133)
turtle.down()
turtle.showturtle()
turtle.goto(-117.80)
turtle.circle(40)
# Fill a balloon to the right
turtle.hideturtle()
turtle.up()
turtle.goto(-137, -133)
turtle.down()
turtle.showturtle()
turtle.goto(-70.0)
turtle.circle(40)

# to write LOVE
turtle.pencolor("RED")
turtle.penup()
turtle.goto(-245.10)
turtle.write("❤",move=False,align='center',font=(Microsoft Yahei.30.'normal'))

turtle.pencolor("ORANGE")
turtle.penup()
turtle.goto(-350.10)
turtle.write("Li",move=False,align='center',font=(Microsoft Yahei.30.'normal'))

turtle.pencolor("ORANGE")
turtle.penup()
turtle.goto(-305.90)
turtle.write("Jay",move=False,align='center',font=(Microsoft Yahei.30.'normal'))

turtle.pencolor("RED")
turtle.penup()
turtle.goto(-167.10)
turtle.write("❤",move=False,align='center',font=(Microsoft Yahei.30.'normal'))

turtle.pencolor("ORANGE")
turtle.penup()
turtle.goto(-117.90)
turtle.write("Ya",move=False,align='center',font=(Microsoft Yahei.30.'normal'))

turtle.pencolor("ORANGE")
turtle.penup()
turtle.goto(-70.10)
turtle.write("Sister",move=False,align='center',font=(Microsoft Yahei.30.'normal'))

# Write to who is not separated
turtle.pencolor("pink")
turtle.penup()
turtle.goto(-220.200)
turtle.write(str,move=False,align='center',font=("Fangzhengshu body".80.'normal'))

turtle.pencolor("RED")
turtle.penup()
turtle.goto(-210, -300)
turtle.write(str1,move=False,align='center',font=("Fangzhengshu body".50.'normal'))

window=turtle.Screen()
window.exitonclick()
Copy the code

Although we can change the world is not much, but in this matter of happiness, I hope you and I, have no regrets. Come on!!

Click on 🎁 q Group: 675240729 (pure technical exchange and resource sharing) to pick it up.

More than 3000 Python ebooks are available, including: (1) Professional advice, (2) Installation of Python development environment, (3) 400 self-taught videos, (4) Common vocabulary of software development, (5) the latest learning roadmap, (6) More than 3000 Python ebooks