import turtle as t

t.color("red","red")
# 上联
t.penup()
t.goto(100,150)
t.pendown()
t.begin_fill()
for i in range(2):
    t.fd(50)
    t.right(90)
    t.fd(400)
    t.right(90)
t.end_fill()
# 上联文字
t.penup()
t.goto(125,-250)
t.pendown()
t.color("black","black")
t.write("一\n年\n四\n季\n春\n常\n在",align="center",font=("华文行楷",40,"normal"))
t.color("red","red")
# 下联
t.penup()
t.goto(-150,150)
t.pendown()
t.begin_fill()
t.goto(-100,150)
t.goto(-100,-250)
t.goto(-150,-250)
t.goto(-150,150)
t.end_fill()
# 上联文字
t.penup()
t.goto(-125,-250)
t.pendown()
t.color("black","black")
t.write("万\n紫\n千\n红\n总\n是\n春",align="center",font=("华文行楷",40,"normal"))
t.color("red","red")
# 横批
t.penup()
t.goto(-100,200)
t.pendown()
t.begin_fill()
for i in range(2):
    t.fd(200)
    t.left(90)
    t.fd(50)
    t.left(90)
t.end_fill()
# 横批文字
t.penup()
t.goto(0,200)
t.pendown()
t.color("black","black")
t.write("乐喜安平",align="center",font=("华文行楷",35,"normal"))
t.color("red","red")

image

0 条评论

目前还没有评论...