Commit 177f1db4 by BellCodeEditor

save project

parent d5615053
Showing with 7 additions and 2 deletions
...@@ -19,11 +19,16 @@ while True: ...@@ -19,11 +19,16 @@ while True:
print("密码错误")''' print("密码错误")'''
import turtle import turtle
turtle.speed(20) turtle.screensize(0,0,"black")
turtle.pencolor("black") colors=["red","orange","yellow","green"]
turtle.speed(30)
for i in range(0,300): for i in range(0,300):
turtle.pencolor(colors[i%4])
turtle.forward(i) turtle.forward(i)
turtle.right(91) turtle.right(91)
turtle.hideturtle() turtle.hideturtle()
turtle.done() turtle.done()
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