Commit 2b746598 by BellCodeEditor

save project

parent 71ad3525
Showing with 4 additions and 1 deletions
......@@ -2,8 +2,11 @@
请使用turtle模块画出五角星
"""
import turtle
t=turtle.Pen("red")
t=turtle.Pen()
t.fillcolor("red")
t.begin_fill()
for i in range(5):
t.forward(200)
t.right(144)
t.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