Commit ebf0dea1 by BellCodeEditor

save project

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