Commit ffd2043c by BellCodeEditor

save project

parent f5c8c496
Showing with 9 additions and 7 deletions
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
import turtle import turtle
d=1 d=1
pen=turtle.Pen() pen=turtle.Pen()
colors=["green","rad","black"]
for i in range(1,300): for i in range(1,300):
colors=["green","rald","black"] pen.forward(i)
pen.pencolor([1%3]) pen.pencolor(colors[i%3])
pen.forward(d)
pen.right(91) pen.right(91)
d+=1
# 隐藏画笔,保存画布 # 隐藏画笔,保存画布
pen.hideturtle() pen.hideturtle()
turtle.done() turtle.done()
\ No newline at end of file
colors=["green","rad","black"]
pen.pencolor(colors[1%3])
\ 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