Commit 5017d67b by BellCodeEditor

save project

parent 7e6e4bc7
Showing with 3 additions and 4 deletions
import turtle #引用海龟
t = turtle.Turtle()
colors = ["blue","green","orange","yellow"]
t.speed(0)
distance = 1
for i in range(300):
t.forward(distance)
t.color(colors[i%4])
t.forward(i)
t.left(91)
distance+=1
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