Commit a12bbaaf by BellCodeEditor

save project

parent a4aa1316
Showing with 9 additions and 6 deletions
...@@ -5,12 +5,14 @@ ...@@ -5,12 +5,14 @@
import turtle import turtle
pen = turtle.Pen() pen = turtle.Pen()
# 请创造师在下面接着创作 color=["red","yellow","green","orange"]
distance=1 s = turtle.Screen()
for i in range(1000):
pen.forward(distance) for i in range(300):
distance+=1 s.bgcolor("black")
s.bgcolor(color[i%4])
pen.forward(i)
pen.right(91) pen.right(91)
# 隐藏画笔,保存画布
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