Commit 498d4617 by BellCodeEditor

save project

parent 8fa46723
Showing with 7 additions and 4 deletions
......@@ -4,11 +4,13 @@
"""
import turtle
pen = turtle.Pen()
# 请创造师在下面接着创作
screen=turtle.Screen()
screen.bgcolor("black")
i=0
s=["red","blue","pink","green"]
for i in range(1,300):
pen.forward(i)
pen.pencolor(s[i%5])
pen.right(91)
# 隐藏画笔,保存画布
pen.forward(i+1)
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