Commit 2be98c17 by BellCodeEditor

save project

parent 8cce5699
Showing with 9 additions and 3 deletions
...@@ -3,14 +3,20 @@ ...@@ -3,14 +3,20 @@
每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果 每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果
""" """
import turtle import turtle
a=1
color=["red","green","orange","yellow"]
pen = turtle.Pen() pen = turtle.Pen()
screen = turtle.Screen() screen = turtle.Screen()
color_a=["red","green","orange","yellow"]
pen.speed(1000)
screen.bgcolor("black")
for i in range(1,300): for i in range(500):
pen.forward(i) pen.pencolor(color_a[a%4])
pen.forward(a)
a=a+1
pen.left(91) pen.left(91)
......
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