代码:
import turtle as t
t.speed(0)
t.color('red')
d=0.1
for _ in range(50):
t.forward(d)
t.left(360/6-1)
d+=0.1
t.color('blue ')
for _ in range(50):
t.forward(d)
t.left(360/6-1)
d+=0.1
t.color('green ')
for _ in range(50):
t.forward(d)
t.left(360/6-1)
d+=0.1
t.color('gold ')
for _ in range(50):
t.forward(d)
t.left(360/6-1)
d+=0.1
for _ in range(50):
t.forward(d)
t.left(360/6-1)
d+=0.1
t.color('blue ')
for _ in range(50):
t.forward(d)
t.left(360/6-1)
d+=0.1
t.color('green ')
for _ in range(50):
t.forward(d)
t.left(360/6-1)
d+=0.1
t.color('gold ')
for _ in range(50):
t.forward(d)
t.left(360/6-1)
d+=0.1
for _ in range(50):
t.forward(d)
t.left(360/6-1)
d+=0.1
t.color('blue ')
for _ in range(50
标签:python,50,0.1,range,的话,360,forward,运行,left
From: https://blog.csdn.net/seewo1325/article/details/143980386