Commit 08813dfc by BellCodeEditor

save project

parent 77d8d831
Showing with 6 additions and 4 deletions
import turtle import turtle
pen = turtle.Pen() pen = turtle.Pen()
# 请创造师在下面接着创 screen = turtle.Screen()
i=1 screen.bgcolor("black")
colors=["white","blue","violet","cyan"]
distance=1
pen.speed(0) pen.speed(0)
for i in range(1,300): for i in range(1,300):
pen.pencolor(colors[i%4])
pen.forward(i) pen.forward(i)
i+=1
pen.right(91) pen.right(91)
pen.hideturtle() pen.hideturtle()
turtle.done() 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