Commit 2aa7375e by BellCodeEditor

save project

parent dafd9ac4
Showing with 21 additions and 15 deletions
......@@ -2,25 +2,30 @@
import turtle
dew = turtle.Pen()
dew.up()
dew.goto(100,-100)
dew.goto(100,-70)
dew.down()
dew.write("悟空给\n诺依\n回信",font = ("楷体",13,"normal"))
dew.hideturtle()
screen = turtle.Screen()
screen.bgcolor("light yellow")
screen.bgcolor("yellow")
pen = turtle.Pen()
pen.up()
pen.fillcolor("red")
pen.begin_fill()
pen.goto(0,0)
pen.down()
pen.pencolor("red")
pen.pensize(5)
pen.left(45)
pen.forward(100)
pen.circle(100*2/8*2,180)
pen.right(90)
pen.circle(100*2/8*2,180)
pen.forward(100)
pen.end_fill()
def circle(len,x,y):
pen.fillcolor("light blue")
pen.begin_fill()
pen.goto(x,y)
pen.down()
pen.pencolor("orange")
pen.pensize(5)
pen.left(45)
pen.forward(len)
pen.circle(len/2,180)
pen.right(90)
pen.circle(len/2,180)
pen.forward(len)
pen.end_fill()
circle(20,0,0)
circle(30,0,0)
circle(40,0,0)
circle(50,0,0)
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