Commit 878f9dc9 by BellCodeEditor

save project

parent b5f76635
Showing with 3 additions and 5 deletions
...@@ -2,13 +2,11 @@ ...@@ -2,13 +2,11 @@
请使用turtle模块画出五角星 请使用turtle模块画出五角星
""" """
import turtle import turtle
pen.forward(100)
pen.left(90)
pen.forward(100)
t=turtle.Pen() t=turtle.Pen()
t. t.fillcolor("red")
t.begin_fill()
for i in range(5): for i in range(5):
t.fd(200) t.fd(200)
t.right(144) t.right(144)
t.end_fill()
turtle.done 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