Commit d3191916 by BellCodeEditor

save project

parent 63df1f3c
Showing with 13 additions and 7 deletions
...@@ -19,3 +19,4 @@ for i in range(1,300): ...@@ -19,3 +19,4 @@ for i in range(1,300):
# 隐藏画笔,保存画布 # 隐藏画笔,保存画布
pen.hideturtle() pen.hideturtle()
turtle.done() turtle.done()
import turtle import turtle
import turtle import turtle
pen=turtle.Pen()
d=1 pen=turtle.Pen()
for i in range(10000000): screen = turtle.Screen()
pen.forward(d) screen.bgcolor("light pink")
pen.left(91) colors=["white","blue","violet","cyan"]
d=d+1 distance=1
pen.speed(1000)
for i in range(1,300):
pen.pencolor(colors[i%4])
pen.forward(i)
pen.right(91)
pen.hideturtle() pen.hideturtle()
turtle.done() 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