Commit 8356d20e by BellCodeEditor

save project

parent f7371083
Showing with 7 additions and 4 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
len=int(turtle.textinput("z","半径"))
turtle.bgcolor("pink")
turtle.penup()
turtle.goto(100,0)
......@@ -9,10 +11,10 @@ turtle.pendown()
turtle.pensize(10)
turtle.pencolor("red")
turtle.left(45)
turtle.forward(50)
turtle.circle(25,180)
turtle.forward(len*2)
turtle.circle(len,180)
turtle.right(90)
turtle.circle(25,180)
turtle.forward(50)
turtle.circle(len,180)
turtle.forward(len*2)
turtle.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