练习彩色线条

2+

import turtle


import turtle

colors = ['red','orange','yellow','green','cyan','biue','purple','pink']

turtle.pensize(10)

c = 0
while c<8:
    ys = colors[c]
    turtle.pencolor(ys)
    turtle.fd(10)
    c = c + 1

2+

发表评论