Commit a13824fd by BellCodeEditor

save project

parent 29fd5bf9
Showing with 7 additions and 5 deletions
......@@ -9,14 +9,15 @@ q.write("niho",font=("Times",20,"normal"))
q.hideturtle()
z=turtle.Pen()
len=60
len=screen.textinput("输入框","你要多大爱心:")
w=int(len)
z.pencolor("red")
z.pensize(5)
z.left(45)
z.forward(2*len)
z.circle(len,180)
z.forward(2*w)
z.circle(w,180)
z.right(90)
z.circle(len,180)
z.forward(2*len)
z.circle(w,180)
z.forward(2*w)
z.hideturtle()
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