Commit 2a121790 by BellCodeEditor

auto save

parent 7767837e
Showing with 14 additions and 0 deletions
import turtle
import random
color = ["pink","red","yellow","green","blue"]
pencolor = 0
screen=turtle.Screen()
pen1 = turtle.Pen()
pen1.penup()
pen1.goto(-220,0)
while True:
pencolor = random.randint(0,4)
pen1.pencolor(color[pencolor])
pen1.write("郭宸旭你的眼镜会反光!",font=("Times",30,"normal"))
screen.bgcolor("pink")
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