Commit 0dc05b7d by BellCodeEditor

save project

parent e2c822cf
Showing with 8 additions and 5 deletions
......@@ -11,7 +11,9 @@ pen.write(str,font=("Times",20,"normal"))
pen.hideturtle()
len=120
name=screen.textinput("提示","请输入你的名字:")
len=screen.textinput("提示","输入你想要的爱心大小:")
len1=int(len)
pen1=turtle.Pen()
pen1.pensize(10)
pen1.pencolor("red")
......@@ -19,10 +21,10 @@ pen1.penup()
pen1.goto(-115,-145)
pen1.pendown()
pen1.left(45)
pen1.forward(len*2)
pen1.circle(len,180)
pen1.forward(len1*2)
pen1.circle(len1,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(len*2)
pen1.circle(len1,180)
pen1.forward(len1*2)
pen1.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