Commit a8e1f7a2 by BellCodeEditor

save project

parent 857dc066
Showing with 6 additions and 5 deletions
......@@ -2,7 +2,7 @@
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("100","100")
len=int(input("半径:"))
pen=turtle.Pen()
pen.write("你好Esc",font=("Times",80,"normal"))
pen.hideturtle()
......@@ -12,10 +12,10 @@ pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(100)
pen.circle(5,180)
pen.forward(len*2)
pen.circle(len,180)
pen.left()(45)
pen.circle(5,180)
pen.forward(100)
pen.circle(len,180)
pen.forward(len*2)
pen.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