Commit b597fc6d by BellCodeEditor

save project

parent 3abe55d2
Showing with 5 additions and 4 deletions
...@@ -4,14 +4,15 @@ p=turtle.Pen() ...@@ -4,14 +4,15 @@ p=turtle.Pen()
p.write("谢谢悟空。\n",font=("Times",20,"Normal")) p.write("谢谢悟空。\n",font=("Times",20,"Normal"))
p.hideturtle() p.hideturtle()
p1=turtle.Pen() p1=turtle.Pen()
len=50
p1.pencolor("red") p1.pencolor("red")
p1.pensize(5) p1.pensize(5)
p1.left(45) p1.left(45)
p1.forward(100) p1.forward(2*len)
p1.circle(50,180) p1.circle(len,180)
p1.right(90) p1.right(90)
p1.circle(50,180) p1.circle(len,180)
p1.forward(100) p1.forward(2*len)
p1.hideturtle() p1.hideturtle()
turtle.done() turtle.done()
p2=turtle.Pen() p2=turtle.Pen()
......
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