Commit 27b62513 by BellCodeEditor

save project

parent 71938bc0
Showing with 12 additions and 7 deletions
......@@ -2,9 +2,9 @@
请使用turtle模块画出五角星
"""
import turtle
pen = turtle.pen("red")
pen = turtle.pen()
for i in range(5):
pen.forwart(200)
pen.right(144)
pen.hideturtle()
p.forwart(200)
p.right(144)
p.hideturtle()
turtle.dome()
\ No newline at end of file
import turtle
import turtle
......@@ -2,4 +2,8 @@ import turtle
turtle.fillcolor("red")
turtle.begin_fill()
count-1
while count<
\ No newline at end of file
while count<=5
turtle.forword(300)
turtle.right(144)
count +=1
turtle.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