Commit 80c3a0ca by BellCodeEditor

save project

parent 493ea3d2
Showing with 4 additions and 3 deletions
...@@ -7,16 +7,17 @@ import turtle ...@@ -7,16 +7,17 @@ import turtle
pen = turtle.Pen() pen = turtle.Pen()
screen = turtle.Screen() screen = turtle.Screen()
screen.bgcolor("light pink") screen.bgcolor("black")
colors=["green","red","orange","blue"] colors=["lightgreen","lightpink","yellow","lightblue"]
# 请创造师在下面接着创作 # 请创造师在下面接着创作
for i in range(1,300): for i in range(1,300):
pen.hideturtle()
pen.pencolor(colors[i%4]) pen.pencolor(colors[i%4])
pen.fd(i) pen.fd(i)
pen.rt(91) pen.rt(91)
pen.speed(1000) pen.speed(1000)
# 隐藏画笔,保存画布 # 隐藏画笔,保存画布
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