Commit 17fd474e by BellCodeEditor

save project

parent 4b384517
Showing with 16 additions and 1 deletions
...@@ -5,7 +5,7 @@ screen.bgcolor("light blue") ...@@ -5,7 +5,7 @@ screen.bgcolor("light blue")
colors=["white","blue","violet","cyan"] colors=["white","blue","violet","cyan"]
# 请创造师在下面接着创作 # 请创造师在下面接着创作
distance=1 distance=1
pen.speed(90000000000909090909099990999990000909) pen.speed(10*100)
for i in range(1,300): for i in range(1,300):
pen.pencolor(colors[i%4]) pen.pencolor(colors[i%4])
pen.forward(i) pen.forward(i)
......
import turtle
pen = turtle.Pen()
screen = turtle.Screen()
screen.bgcolor("light blue")
colors=["red","orange","yellow","green","cyan","blue","white","violet"]
# 请创造师在下面接着创作
distance=1
pen.speed(90)
for i in range(1,300):
pen.pencolor(colors[i%7])
pen.forward(i)
pen.right(91)
# 隐藏画笔,保存画布
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