Commit 46ac1c25 by BellCodeEditor

save project

parent 6fbf0389
Showing with 7 additions and 2 deletions
......@@ -4,11 +4,16 @@
"""
import turtle
c=["red","brown","blue","yellow"]
index=0
pen = turtle.Pen()
for i in range(1,301):
pen.pencolor(c[index])
pen.forward(i)
pen.left(185)
pen.left(91)
index+=1
if index>3:
index=0
# 隐藏画笔,保存画布
pen.hideturtle()
turtle.done()
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