Commit 0c4a0a79 by BellCodeEditor

save project

parent 5752e60a
Showing with 6 additions and 6 deletions
......@@ -17,15 +17,15 @@ pen.hideturtle()
pen1.pensize(10)
pen1.fillcolor("red")
pen1.pencolor("red")
list=[10,20,50,60,100]
len=random.choice(list)
len=screen.textinput('安排','你需要多大的爱心啊?')
loveside=int(len)
pen1.begin_fill()
pen1.left(45)
pen1.fd(2*len)
pen1.circle(len,180)
pen1.fd(2*loveside)
pen1.circle(loveside,180)
pen1.right(90)
pen1.circle(len,180)
pen1.fd(2*len)
pen1.circle(loveside,180)
pen1.fd(2*loveside)
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