Commit 5ba51515 by BellCodeEditor

save project

parent 7808fde7
Showing with 5 additions and 3 deletions
# 悟空想海龟作图画出弹簧隧道,但是出现了bug,运行不了,请你帮助他,修改bug~
import turtle
import random
list_1 = ['blue','black','white','pink','red','green','yellow',]
pen=turtle.Pen()
screen=turtle.Screen()
pen.speed(100)
pen.hideturtle()
screen.bgcolor('black')
screen.bgcolor('lightblue')
i=0
while i<180:
pen.pencolor('pink')
a = random.choice(list_1)
pen.pencolor(a)
pen.penup()
pen.goto(0,0)
pen.forward(200)
......
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