Commit 25c9cb6a by BellCodeEditor

auto save

parent 5811b97a
Showing with 2 additions and 2 deletions
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
import turtle import turtle
turtle.bgcolor("black") turtle.bgcolor("black")
pen = turtle.Pen() pen = turtle.Pen()
colors = ["red","orange","yellow","blue"] colors = ["red","orange","yellow","green"]
# 请创造师在下面接着创作 # 请创造师在下面接着创作
# distance=1 # distance=1
# for i in range(300): # for i in range(300):
...@@ -14,7 +14,7 @@ colors = ["red","orange","yellow","blue"] ...@@ -14,7 +14,7 @@ colors = ["red","orange","yellow","blue"]
# pen.right(91) # pen.right(91)
# 隐藏画笔,保存画布 # 隐藏画笔,保存画布
for i in range(1,300): for i in range(1,300):
pen.color(4%i) pen.pencolor(colors[i%4])
pen.forward(i) pen.forward(i)
pen.right(91) pen.right(91)
pen.hideturtle() pen.hideturtle()
......
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