很简单的小程序

import turtle as t

t.pensize(0)
t.bgcolor("black")
t.pensize("2")

for x in range(70):
t.color("blue")
t.forward(2*x)
t.left(91)

for x in range(70,140):
t.color("yellow")
t.forward(2*x)
t.left(91)

for x in range(140,210):
t.color("red")
t.forward(2*x)
t.left(91)

猜你喜欢

转载自www.cnblogs.com/54188abc/p/9925368.html
今日推荐