Commit 08a212da by BellCodeEditor

save project

parent 8d28271d
Showing with 3 additions and 4 deletions
...@@ -10,12 +10,12 @@ pen.hideturtle() ...@@ -10,12 +10,12 @@ pen.hideturtle()
pen1=turtle.Pen() #画爱心的笔 pen1=turtle.Pen() #画爱心的笔
pen.hideturtle()
len=60 len=screen.textinput("半径框","爱心半径是")
pen1.left(45) pen1.left(45)
pen1.forward(2*len) pen1.forward(2*len)
pen1.circle(len,180) pen1.circle(len,180)
pen1.right(90) pen1.right(90)
pen1.circle(len,180) pen1.circle(len,180)
pen1.forward(2*len) pen1.forward(2*len)
turtle.done() 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