Commit cdc15ba8 by BellCodeEditor

save project

parent 16683620
Showing with 7 additions and 5 deletions
import turtle
import random
screen=turtle.Screen()
screen.bgcolor("pink")
pen=turtle.Pen()
......@@ -7,14 +8,15 @@ pen.goto(40,-220)
pen.write("慈母手中线,\n游子身上衣。\n临行密密缝,\n意恐迟迟归。\n",font=("Times",30,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
len=60
len=screen.textinput("提示","你想要多大的爱心?")
q=int(len)
pen1.pensize(5)
pen1.pencolor('red')
pen1.left(45)
pen1.forward(len*2)
pen1.circle(len,180)
pen1.forward(q*2)
pen1.circle(q,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(len*2)
pen1.circle(q,180)
pen1.forward(q*2)
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