彩色线条画

2+


import turtle

ce = ['red','orange','yellow','green',
      'cyan','blue','purple','pink']

turtle.bgcolor('black')
turtle.shape('square')

turtle.pensize(10)
turtle.title('马的画')

turtle.speed(8)

j = 0
c = 0
while c 7:j=0
    
    turtle.pencolor(ce[j])
    turtle.fd(100)
    turtle.fd(-100)
    turtle.left(12)
    c = c + 1

print('马画完了')



2+

发表评论