Commit 16ad6a6a by BellCodeEditor

auto save

parent 15d0967e
Showing with 3 additions and 2 deletions
...@@ -8,12 +8,12 @@ pen = turtle.Pen() ...@@ -8,12 +8,12 @@ pen = turtle.Pen()
pen.speed(10) pen.speed(10)
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("white") screen.bgcolor("white")
colors=["red","orange","yellow","green","cyan"]
# 请创造师在下面接着创作 # 请创造师在下面接着创作
for i in range(300): for i in range(300):
pen.forward(i) pen.forward(i)
pen.right(73) pen.right(73)
colors["red","orange","yellow","green"] pen.pencolor(colors[i%5])
pen.pencolor(colors[i%4])
# 隐藏画笔,保存画布 # 隐藏画笔,保存画布
pen.hideturtle() pen.hideturtle()
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