Commit 5ac0f06e by BellCodeEditor

save project

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