Commit 7f4316d7 by BellCodeEditor

save project

parent d6cba4d7
Showing with 6 additions and 12 deletions
...@@ -15,24 +15,17 @@ ...@@ -15,24 +15,17 @@
# 隐藏画笔,保存画布 # 隐藏画笔,保存画布
#pen.hideturtle() #pen.hideturtle()
#turtle.done() #turtle.done()
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen = turtle.Screen() screen = turtle.Screen()
screen.bgcolor("light pink") screen.bgcolor("light pink")
colors=["red","orange","yollow","green"] colors=["red","orange","yollow","green"]
i=0 for i in range(1300):
for i in range(0,1300,1):
pen.color(colors[i%4]) pen.color(colors[i%4])
pen.forward(i) pen.forward(i)
pen.left(89) pen.left(89)
pen.hideturtle() pen.hideturtle()
turtle.down turtle.down
\ 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