Commit 519abf9e by BellCodeEditor

save project

parent 2a5a5c2e
Showing with 8 additions and 3 deletions
...@@ -4,11 +4,15 @@ ...@@ -4,11 +4,15 @@
""" """
import turtle import turtle
pen = turtle.Pen() pen = turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("black")
pen.speed(200) pen.speed(200)
for i in range (1,350,3): colors=["red","yellow","blue","green"]
for i in range (1,650,3):
pen.pencolor(colors[i%4])
pen.left(91) pen.left(91)
pen.forward(i) pen.forward(i)
# 请创造师在下面接着创作
# 隐藏画笔,保存画布
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