鲁班七号—狮舞东方

4+

from turtle import Turtle,Screen
from random import randint
cs = ['red','orange','yellow','green','cyan','blue','purple','pink']
s = Screen()
s.bgcolor('black')
s.addshape('C:\\Users\\Administrator\\Desktop\\菊花.gif')
s.title('王者荣耀(盗版)投诉电话:120')
s.setup(800,600)
tom = Turtle(shape='C:\\Users\\Administrator\\Desktop\\菊花.gif')
tom.penup()
tom.speed(0)
s.delay(0)
while True:
    for c in cs:
        tom.color(c)
        x =randint(-400,400)
        y =randint(-300,300)
        tom.goto(x,y)
        d=randint(10,30)
        s.bgcolor(c)
        tom.pendown()
        for _ in range(5):
            tom.rt(144)
            tom.fd(d)
        tom.penup()
4+

《鲁班七号—狮舞东方》有1个想法

发表评论