Commit 9e2fa3f1 by BellCodeEditor

save project

parent 2e5cb696
Showing with 5 additions and 4 deletions
...@@ -11,6 +11,7 @@ pen1.goto(100,-100) ...@@ -11,6 +11,7 @@ pen1.goto(100,-100)
pen1.pendown() pen1.pendown()
pen1.write("你好,\n儿子!\n我是你爸爸!\n",font=("Times",30,"normal")) pen1.write("你好,\n儿子!\n我是你爸爸!\n",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()
len=200
pen.pencolor("red") pen.pencolor("red")
pen.shape("turtle") pen.shape("turtle")
pen.speed(10) pen.speed(10)
...@@ -18,10 +19,10 @@ pen.pensize(5) ...@@ -18,10 +19,10 @@ pen.pensize(5)
pen.fillcolor("red") pen.fillcolor("red")
pen.begin_fill() pen.begin_fill()
pen.left(45) pen.left(45)
pen.fd(100) pen.fd(len*2)
pen.circle(50,180) pen.circle(len,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(len,180)
pen.fd(100) pen.fd(len*2)
pen.end_fill() pen.end_fill()
turtle.done() turtle.done()
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