Commit 1be1f5f4 by BellCodeEditor

save project

parent 215a4541
Showing with 7 additions and 5 deletions
......@@ -6,15 +6,16 @@ pen.penup()
pen.goto(0,-100)
pen.write("爸爸妈妈:\n我学会了用turtle写字\npython真好玩",font=("times",20,"normal"))
pen.hideturtle()
len=60
len=screen.textinput("提示","你想要多大的爱心")
len1=int(len)
pen.goto(0,0)
pen.pendown()
pen.pensize(10)
pen.pencolor("red")
pen.left(45)
pen.forward(len*2)
pen.circle(len,180)
pen.forward(len1*2)
pen.circle(len1,180)
pen.right(90)
pen.circle(len,180)
pen.forward(len*2)
pen.circle(len1,180)
pen.forward(len1*2)
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