Commit b479d59e by BellCodeEditor

save project

parent 8292195d
Showing with 5 additions and 4 deletions
......@@ -4,16 +4,17 @@
"""
import turtle
import random
screen = turtle.Screen()
pen = turtle.Pen()
pen.shape("turtle")
pen.hideturtle()
pen.pensize(3)
pen.pensize(2)
c = ["red","green","orange","yellow"]
for i in range(1,600,5):
banana = random.choice(c)
for i in range(1,300):
screen.bgcolor(c[i%4])
pen.pencolor(c[i%4])
pen.forward(i)
pen.right(91)
pen.color(banana)
pen.speed(9999999)
# 隐藏画笔,保存画布
pen.hideturtle()
......
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