Commit b95b430c by BellCodeEditor

save project

parent faf8dd05
Showing with 22 additions and 0 deletions
import turtle #
s1 = turtle.Screen()
s1.bgcolor("black")
p1 = turtle.Pen() #创建笔
for i in range(360):
if (i%4 == 1):
p1.color("red")
if (i%4 == 2):
p1.color("orange")
if (i%4 == 3):
p1.color("yellow")
if (i%4 == 0):
p1.color("green")
p1.forward(i)
p1.right(91)
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