Commit 7c2378ca by BellCodeEditor

save project

parent fed68615
Showing with 5 additions and 3 deletions
#请使用turtle模块画出五角星 #请使用turtle模块画出五角星
import turtle import turtle
a=turtle.Pen() a=turtle.Pen()
a.speed(1000)
a.shape("arrow") a.shape("arrow")
a.fillcolor("red") a.fillcolor("red")
a.begin_fill() a.begin_fill()
for i in range(5): for i in range(360):
a.forward(300) a.forward(300)
a.right(144) a.right(179)
a.hideturtle() a.hideturtle()
a.end_fill() a.end_fill()
turtle.done() 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