Commit 5057e7f7 by BellCodeEditor

save project

parent c4a69035
Showing with 10 additions and 4 deletions
...@@ -5,8 +5,11 @@ ...@@ -5,8 +5,11 @@
import turtle import turtle
pen = turtle.Pen() pen = turtle.Pen()
pen.hideturtle()
# 请创造师在下面接着创作 # 请创造师在下面接着创作
distance=1 distance=1
bg = turtle.Screen()
bg.bgcolor("black")
color=["red","green","blue","yellow"] color=["red","green","blue","yellow"]
for i in range(300): for i in range(300):
# while True: # while True:
...@@ -14,5 +17,5 @@ for i in range(300): ...@@ -14,5 +17,5 @@ for i in range(300):
pen.forward(i) pen.forward(i)
pen.right(89) pen.right(89)
# 隐藏画笔,保存画布 # 隐藏画笔,保存画布
pen.hideturtle()
turtle.done() turtle.done()
\ No newline at end of file
import turtle import turtle
bg = turtle.Screen()
bg.bgcolor("black")
pen = turtle.Pen() pen = turtle.Pen()
# 请创造师在下面接着创作 pen.hideturtle()
distance=1 distance=1
color=["red","green","blue","yellow"] color=["red","green","blue","yellow"]
# for i in range(300): # for i in range(300):
...@@ -11,5 +12,5 @@ while True: ...@@ -11,5 +12,5 @@ while True:
distance+=1 distance+=1
pen.right(89) pen.right(89)
# 隐藏画笔,保存画布 # 隐藏画笔,保存画布
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