Commit 6ba7846a by BellCodeEditor

save project

parent 837281c8
Showing with 6 additions and 5 deletions
...@@ -2,16 +2,17 @@ import turtle ...@@ -2,16 +2,17 @@ import turtle
sc=turtle.Screen() sc=turtle.Screen()
sc.bgcolor("light blue") sc.bgcolor("light blue")
pen=turtle.Pen() pen=turtle.Pen()
len=60.5 len=sc.textinput("输数字","有惊喜!")
l=int(len)
pen.pensize(25) pen.pensize(25)
pen.pencolor("red") pen.pencolor("red")
pen.begin_fill() pen.begin_fill()
pen.lt(45) pen.lt(45)
pen.fd(2*len) pen.fd(2*l)
pen.circle(len,180) pen.circle(l,180)
pen.rt(90) pen.rt(90)
pen.circle(len,180) pen.circle(l,180)
pen.fd(2*len) pen.fd(2*l)
pen.penup() pen.penup()
pen.lt(45) pen.lt(45)
......
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