划句顾 发表于 2021-6-25 20:46:18

python:使用turtle库绘制彩色螺旋线

import turtle as t
t.speed("fastest")
t.pensize(2)
colors = ["red","blue","yellow","purple"]
for x in range(200):
    t.color(colors)
    t.forward(2*x)
    t.left(91)
t.done()

页: [1]
查看完整版本: python:使用turtle库绘制彩色螺旋线