Commit 48010b82 by BellCodeEditor

save project

parent e8d23138
Showing with 6 additions and 5 deletions
...@@ -8,16 +8,17 @@ pen.write("来了老弟!\n想死你了",font=("Times",30,"normal")) ...@@ -8,16 +8,17 @@ pen.write("来了老弟!\n想死你了",font=("Times",30,"normal"))
pen.penup() pen.penup()
pen.goto(-200,-100) pen.goto(-200,-100)
len=110 len=screen.textinput("提示","你想要多大的爱心呀?")
K=int(len)
pen.pendown() pen.pendown()
pen.pensize(4) pen.pensize(4)
pen.pencolor('red') pen.pencolor('red')
pen.left(45) pen.left(45)
pen.forward(len*2) pen.forward(K*2)
pen.circle(len,180) pen.circle(K,180)
pen.right(90) pen.right(90)
pen.circle(len,180) pen.circle(K,180)
pen.forward(len*2) pen.forward(K*2)
pen.hideturtle() pen.hideturtle()
turtle.done() 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