📜  如何制作密码方形多色方形螺旋python代码示例

📅  最后修改于: 2022-03-11 14:45:20.556000             🧑  作者: Mango

代码示例1
import turtle
t= turtle.Pen()
t.speed(0)
turtle.bgcolor('black')
colours= ["blue","green","brown","yellow"]
for x in range(100):
    t.forward(x)
    t.left(90)
    t.pencolor(colours[x % 4])