画☆

0
from turtle import *
cnm=Turtle()
cnm.pensize(8)
screen=Screen()
cnm.speed(0)
screen.delay(0)
cnm.ht()
screen.tracer(0,0)
screen.bgcolor('black')
def 画十(t,long):
    """
    t=turtle  long=length
    """
    for x in range(8):
        t.color(cr[x])
        t.fd(long)
        for x in range(4):
            t.fd(long)
            t.bk(long)
            t.rt(90)
        t.bk(long)
        t.rt(45)
        
        
cr=['red','green','blue','yellow','orange','purple','pink','gray']
while True:
    画十(cnm,200)
    screen.update()
    cnm.rt(0.6)
    cnm.clear()


0

发表评论