Commit e6025717 by BellCodeEditor

save project

parent 20520903
Showing with 10 additions and 4 deletions
""" """
请使用turtle模块画出五角星 请使用turtle模块画出五角星
""" """
import turtle.Pen() import turtle
pen=turtle.Pen()
pen.begin_fill()
pen.fillcolor("red") pen.fillcolor("red")
for i in range(5) for i in range(36):
Pen.forward(200) pen.forward(200)
Pen.right(34) pen.right(170)
pen.hideturtle()
pen.end_fill()
turtle.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