Commit 8008fdaf by BellCodeEditor

auto save

parent 70bce3bc
Showing with 4 additions and 3 deletions
...@@ -7,11 +7,11 @@ pen = turtle.Pen() ...@@ -7,11 +7,11 @@ pen = turtle.Pen()
pen1=turtle.Screen() pen1=turtle.Screen()
# 请创造师在下面接着创作 # 请创造师在下面接着创作
pen1.bgcolor("black") pen1.bgcolor("black")
colors=["red","orange","yellow","green"] colors=["red","orange","yellow","green","purple","blue","pink"]
for i in range(1,300): for i in range(1,300):
pen.pencolor(colors[i%4]) pen.pencolor(colors[i%7])
pen.forward(i) pen.forward(i)
pen.right(91) pen.right(51)
# 隐藏画笔,保存画布 # 隐藏画笔,保存画布
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