Commit 2bd00f7b by BellCodeEditor

save project

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