Commit 228570b4 by BellCodeEditor

save project

parent 8f1b4f37
Showing with 11 additions and 7 deletions
...@@ -2,16 +2,19 @@ ...@@ -2,16 +2,19 @@
请使用turtle模块画出五角 请使用turtle模块画出五角
""" """
import turtle import turtle
pen=tuptle.pen pen=tuptle.pen()
pen.fillcolor("red")
pen.begin_fill()
pen.forword(200) pen.forword(200)
pen.right(144) pen.right(34)
pen.forword(200) pen.forword(200)
pen.right(144) pen.right(34)
pen.forword(200) pen.forword(200)
pen.right(144) pen.right(34)
pen.forword(200) pen.forword(200)
pen.right(144) pen.right(34)
pen.forword(200) pen.forword(200)
pen.right(144) pen.right(34)
turtle.done() pen.end_fill()
tuptle.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