Commit 7c2378ca by BellCodeEditor

save project

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