Commit 756535f7 by BellCodeEditor

save project

parent 169d1542
Showing with 5 additions and 3 deletions
......@@ -3,13 +3,15 @@
每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果
"""
import turtle
screen=turtle.Screen()
screen.bgcolor("black")
colors=["green","red","orange","yellow"]
pen = turtle.Pen()
pen.speed(3000)
for i in range(1,3000):
pen.pencolor(colors)
pen.forward(i)
pen.left(91)
pen.right()(91)
pen.hideturtle()
pen.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