0530/2

Posted 张可201709080002

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了0530/2相关的知识,希望对你有一定的参考价值。

import turtle
colors=[\'yellow\',\'red\',\'black\',\'blue\',\'purple\',\'orange\']
turtle.speed(10)
for i in range(100):
    turtle.pencolor(colors[i%6])
    turtle.forward(i)
    turtle.left(59)

turtle.done()

以上是关于0530/2的主要内容,如果未能解决你的问题,请参考以下文章