Commit 5ca20458 by BellCodeEditor

save project

parent 63a3c92b
Showing with 7 additions and 4 deletions
...@@ -2,7 +2,11 @@ ...@@ -2,7 +2,11 @@
请使用turtle模块画出五角星 请使用turtle模块画出五角星
""" """
import turtle import turtle
pen=turtle.Pen() p=turtle.Pen()
p.fillcolor("red")
p.begin_fill()
for i in range(5): for i in range(5):
pen.left(144) p.left(144)
pen.forward(30) p.forward(200)
\ No newline at end of file p.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