Commit 27b62513 by BellCodeEditor

save project

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