Commit a0f338a2 by BellCodeEditor

save project

parent b2c3023f
Showing with 11 additions and 4 deletions
......@@ -4,14 +4,20 @@
"""
import turtle
t=["red","orange","yellow","green"]
j=0
pen=turtle.Pen()
# 请创造师在下面接着创作
i=1
for i in range(300):
pen=pencolor(t[i%4])
pen.pencolor(t[j%4])
pen.forward(i)
pen.right(91)
i+=1
j=j+1
# 隐藏画笔,保存画布
pen.hideturtle()
pen.penup()
pen.goto(0,0)
pen.fillcolor(black)
pen.begin_fill()
pen.pendown()
pen.circle(0.5)
pen.end_fill()
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