Commit a84a150f by BellCodeEditor

save project

parent 0125a622
Showing with 33 additions and 4 deletions
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write("老婆\n我爱你!\n爱你的老公", font=("times",20,"normal")) pen.write("老婆\n有你的地方就是幸福!\n有你的相伴是我一生的幸运!\n有你的爱我上辈子一定是拯救了整个地球!\n七夕节快乐!\n爱你的老公", font=("times",15,"normal"))
pen.goto(0,0) pen.goto(0,0)
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.fillcolor("red")
pen1.begin_fill()
pen1.pensize(10) pen1.pensize(10)
pen1.pencolor("red") pen1.pencolor("red")
len=100
pen1.left(45) pen1.left(45)
pen1.forward(100) pen1.forward(2*len)
pen1.circle(50,180) pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
pen1.penup()
pen1.goto(-200,0)
pen1.pendown()
pen1.left(90)
pen1.forward(2*len)
pen1.circle(len,180)
pen1.right(90) pen1.right(90)
pen1.circle(50,180) pen1.circle(len,180)
pen1.forward(2*len)
pen1.end_fill()
pen1.penup()
pen1.goto(-500,100)
pen1.pendown()
pen1.left(60)
pen1.forward(800)
pen1.right(90)
pen1.forward(50)
pen1.left(120)
pen1.forward(100)
pen1.left(120)
pen1.forward(100) pen1.forward(100)
pen1.left(120)
pen1.forward(50)
pen1.hideturtle() pen1.hideturtle()
turtle.done() turtle.done()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment