Commit dfa97662 by BellCodeEditor

save project

parent fcd32d81
Showing with 9 additions and 2 deletions
...@@ -2,9 +2,11 @@ import turtle ...@@ -2,9 +2,11 @@ import turtle
a=turtle.Pen() a=turtle.Pen()
a.penup() a.penup()
changdu=1 changdu=1
jiao=80.01
a.pendown() a.pendown()
for i in range(800): for i in range(800):
a.forward(changdu) a.forward(changdu)
a.right(91) a.right(jiao)
changdu+=1 changdu+=1
jiao=jiao+0.02
turtle.done() turtle.done()
\ No newline at end of file
...@@ -2,7 +2,10 @@ import turtle ...@@ -2,7 +2,10 @@ import turtle
a=turtle.Pen() a=turtle.Pen()
a.penup() a.penup()
a.pendown() a.pendown()
for i in range(800): colors=["white","black","grey","light blue"]
turtle.bgcolor("brown")
for i in range(1,800):
a.pencolor(colors[i%4])
a.forward(i) a.forward(i)
a.right(91) a.right(91)
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