Commit faba52a2 by BellCodeEditor

save project

parent 07858a54
Showing with 35 additions and 0 deletions
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("blue")
color="yellow"
pen.pencolor(color)
x=-200
y=-100
len=3
s=screen.textinput("提示","你要多大的")
len=int(s)
pen.speed(0)
pen.up()
pen.goto(x,y)
for i in range(30):
len+=5
pen.setheading(0)
pen.left(45)
pen.forward(len*2)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(len*2)
x+=10
y-=5
pen.penup()
pen.goto(x,y)
pen.pendown()
turtle.done()
import turtle
\ 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