Commit 6e2682f8 by BellCodeEditor

save project

parent b035e270
Showing with 8 additions and 3 deletions
......@@ -5,12 +5,16 @@
import turtle
pen = turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("black")
colors=["white","red","orange","yellow","green","cyan","blue","purple","pink"]
# 请创造师在下面接着创作
distance=1
for i in range(300):
for i in range(3000):
pen.pencolor(colors[i%9])
pen.forward(distance)
distance+=1
pen.right(121)
distance+=0.15
pen.right(40.5)
# 隐藏画笔,保存画布
pen.hideturtle()
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