- A+
所屬分類:百科知識(shí)
1.彩色螺旋線
from turtle import *
import turtle
t = Turtle()
t.pensize(2)
turtle.bgcolor("black")
colors = ["red", "yellow", 'purple', 'blue']
t._tracer(False)
for x in range(400):
for y in range(200):
t.forward(x * y)
t.color(colors[x % 4])
t.left(91)
t._tracer(True)
done()

歷史上的今天:
贊
0
賞

