Commit e2df5758 by BellCodeEditor

save project

parent 614a706c
Showing with 10 additions and 9 deletions
...@@ -12,8 +12,6 @@ p1.write("诺伊,\nturtle真好用!\n我也会做贺卡啦!",font = ("宋体",26 ...@@ -12,8 +12,6 @@ p1.write("诺伊,\nturtle真好用!\n我也会做贺卡啦!",font = ("宋体",26
p1.hideturtle() p1.hideturtle()
turtle.colormode(255) turtle.colormode(255)
p2 = turtle.Pen() p2 = turtle.Pen()
...@@ -21,13 +19,15 @@ p2 = turtle.Pen() ...@@ -21,13 +19,15 @@ p2 = turtle.Pen()
p2.pensize(10) p2.pensize(10)
p2.pencolor((255,192,203)) p2.pencolor((255,192,203))
p2.setheading(45) def huayuan(a):
p2.forward(100) p2.setheading(45)
p2.circle(100/2,180) p2.forward(a)
p2.right(90) p2.circle(a/2,180)
p2.circle(50,180) p2.right(90)
p2.forward(100) p2.circle(a/2,180)
p2.hideturtle() p2.forward(a)
p2.hideturtle()
huayuan(160)
turtle.done() 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