第8次作业

import turtle
turtle. speed(10)
colors = ['#EE0000','#666666','#1E1E1E','#EEEE00','#AEEEEE','#9400D3','#8B8989']

for i in range(200):
    turtle.pencolor(colors[i% 6])
    turtle.forward(i)
    turtle.left(59)
turtle.done()

猜你喜欢

转载自www.cnblogs.com/hhhhuang/p/9113722.html