Commit 62f1022f by BellCodeEditor

save project

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