作业—棒棒糖

0

import turtle
from random import randint
import coloradd
f=0.1
t=turtle
t.colormode(255)
t.speed(0)
t.delay(0)
t.setheading(-90)
t.pensize(10)
t.color(0,0,0)
t.fd(800)
t.home()
t.setheading(0)
for g in range(100):
    for k in range(12):
        x=randint(0,255)
        y=randint(0,255)
        z=randint(0,255)
        n=(x,y,z)
        f=f+0.1
        t.color(n)
        t.fd(f)
        t.rt(30)

0

发表评论