Commit c247502d by BellCodeEditor

save project

parent 387d0a16
Showing with 5 additions and 3 deletions
""" """
请使用turtle模块画出五角星 请使用turtle模块画出五角星
""" """
import turtle import turtle
turtle.shape("turtle") turtle.shape("turtle")
q=turtle.Pen() q=turtle.Pen()
q.fillcolor("red")
q.begin_fill()
for i in range(5): for i in range(5):
q.forward(200) q.forward(200)
q.right(144) q.right(144)
q.hideturtle() q.hideturtle()
turtle.done() q.end_fill()
\ No newline at end of file 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