Commit aa28d93d by BellCodeEditor

save project

parent f05286cb
Showing with 9 additions and 6 deletions
...@@ -2,10 +2,12 @@ ...@@ -2,10 +2,12 @@
请使用turtle模块画出五角星 请使用turtle模块画出五角星
""" """
import turtle import turtle
pen1=turtle.pen() pen1=turtle.Pen()
for i in range(5) pen1.speed(100)
pen1.fd(200) pen1.fillcolor("red")
pen1.rt(144) pen1.begin_fill()
pen1.hideturtle() for i in range(36):
pen1.shape("arrow") pen1.fd(400)
pen1.rt(170)
pen1.end_fill()
turtle.done() turtle.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