Commit 0cf8df4f by BellCodeEditor

save project

parent 060dc3c7
Showing with 9 additions and 9 deletions
""" """
请使用turtle模块画出五角星 请使用turtle模块画出五角星
""" """
input turtle import turtle
pen=tuple.pen() pen=turtle.Pen()
pen.fillcolor("red")
pen.begin_fill()
pen.forward(200) pen.forward(200)
pen.right(144) pen.right(144)
pen.forward(200) pen.forward(200)
...@@ -13,9 +16,7 @@ pen.forward(200) ...@@ -13,9 +16,7 @@ pen.forward(200)
pen.right(144) pen.right(144)
pen.forward(200) pen.forward(200)
pen.right(144) pen.right(144)
pen.fillcolor("red")
pen.begin_fill()
for i in range(5) pen.end_fill()
pen.forward(200) turtle.done()
pen.left(120)
pen.end_fill()
\ 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