Commit 15a7e695 by BellCodeEditor

save project

parent f9013699
Showing with 4 additions and 5 deletions
...@@ -7,14 +7,13 @@ import turtle ...@@ -7,14 +7,13 @@ import turtle
pen = turtle.Pen() pen = turtle.Pen()
screen = turtle.Screen() screen = turtle.Screen()
screen.bgcolor("black") screen.bgcolor("light pink")
pen.speed(0) pen.speed(0)
colors=["yellow","blue","red","purple","green","white"] colors=["white","blue","violet","cyan"]
# 请创造师在下面接着创作 # 请创造师在下面接着创作
for i in range(9999): for i in range(999):
pen.pencolor(colors[i%6])
pen.forward(i) pen.forward(i)
pen.right(90.5) pen.right(90.1)
# 隐藏画笔,保存画布 # 隐藏画笔,保存画布
pen.hideturtle() pen.hideturtle()
turtle.done() turtle.done()
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