Commit 2d46f14c by BellCodeEditor

save project

parent 96041e4e
Showing with 6 additions and 2 deletions
......@@ -2,11 +2,14 @@
请使用turtle模块画出五角星
"""
import turtle
Pen = turtle.Pen()
Pen.shape("turtie")
Pen = turtle.Pen()
Pen.fillcolor("red")
Pen.begin_fill()
Pen.shape("turtle")
for i in range(5):
Pen.forward(200)
Pen.right(144)
Pen.end_fill()
Pen.hideturtle()
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