Commit 043511b6 by BellCodeEditor

save project

parent 07858a54
Showing with 28 additions and 0 deletions
import turtle
bg = turtle.Screen()
pen = turtle.Pen()
bg.bgcolor("light blue")
pen.pencolor("green")
pen.penup()
pen.goto(-40,50)
pen.write("GAME OVER",font=("Times",30,"normal"))
pen.hideturtle()
pen1 = turtle.Pen()
pen1.penup()
pen1.goto(30,0)
pen1.pendown()
pen1.pencolor("pink")
pen1.pensize(5)
length = bg.textinput("询问","想要多大的心?")
heart = int(length)
pen1.fillcolor("pink")
pen1.begin_fill()
pen1.lt(45)
pen1.fd(2*heart)
pen1.circle(heart,180)
pen1.rt(90)
pen1.circle(heart,180)
pen1.fd(2*heart)
pen1.end_fill()
pen1.hideturtle()
turtle.done()
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