Commit cc38b791 by BellCodeEditor

save project

parent 7aa2980e
Showing with 5 additions and 3 deletions
...@@ -4,12 +4,14 @@ ...@@ -4,12 +4,14 @@
""" """
import turtle import turtle
pen = turtle.Pen() pen = turtle.Pen()
screen= screen=turtle.Screen()
screen. screen.bgcolor("black")
color=["red","blue","orange","yellow"] colors=["red","blue","orange","yellow"]
pen.speed(0) pen.speed(0)
for i in range(1,300): for i in range(1,300):
pen.forward(i) pen.forward(i)
pen.color(colors[i%4])
pen.right(91) pen.right(91)
# 隐藏画笔,保存画布 # 隐藏画笔,保存画布
pen.hideturtle() pen.hideturtle()
......
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