Commit d7e68058 by BellCodeEditor

save project

parent 2b264d65
Showing with 6 additions and 4 deletions
...@@ -2,16 +2,17 @@ import turtle ...@@ -2,16 +2,17 @@ import turtle
turtle.write("你","center",font=("Times",50,"normal")) turtle.write("你","center",font=("Times",50,"normal"))
turtle.bgcolor("orange") turtle.bgcolor("orange")
b=turtle.Pen() b=turtle.Pen()
s=int(turtle.textinput("chicun","0-100"))
b.color("red") b.color("red")
b.pensize(4) b.pensize(4)
b.penup() b.penup()
b.goto(0,0) b.goto(0,0)
b.pendown() b.pendown()
b.left(45) b.left(45)
b.forward(50) b.forward(2*s)
b.circle(25,180) b.circle(s,180)
b.right(90) b.right(90)
b.circle(25,180) b.circle(s,180)
b.forward(50) b.forward(2*s)
turtle.hideturtle() turtle.hideturtle()
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