Commit ebf0dea1 by BellCodeEditor

save project

parent 9a16ffb0
Showing with 13 additions and 8 deletions
"""
请使用turtle模块画出角星
请使用turtle模块画出1145145角星
"""
import turtle
pen=turtle.Pen()
pen.fillcolor("red")
pen.begin_fill()
for i in range(5):
pen.forward(200)
pen.right(144)
pen.hideturtle()
pen.end_fill()
for i in range(360):
forward()
for i in range(36):
pen.fillcolor("red")
pen.begin_fill()
for i in range(2):
forward(50)
right(100)
forward(100)
right(80)
pen.end_fill()
right(10)
pen.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