Commit 5ac0f06e by BellCodeEditor

save project

parent ea957fb7
Showing with 11 additions and 6 deletions
......@@ -5,12 +5,16 @@
import turtle
p = turtle.Pen()
# 请创造师在下面接着创作
d=1
for i in range(300):
p.forward(i)
d+=1
p.right(91)
s=turtle.Screen()
c=['red','orange','yellow','lightgreen','lightblue','blue','purple']
s.bgcolor('black')
for i in range(10000000000):
p.fillcolor(c[i%7])
p.begin_fill()
p.forward(i/4)
p.pencolor(c[i%7])
p.end_fill()
p.right(52.4285)
# 隐藏画笔,保存画布
p.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