在学习了python 之后此采用Turtle绘制了螺旋串星图,如下图(图一为单色图,图二维多色图),末尾附上Python3 的程序,仅供大家学习参考,未经本人许可,不得商用!邀请大家提提意见,作者Ather
#螺旋串星图,
import turtle as t
#
t.bgcolor("black")
t.speed(100)
t.width(2)
R1=100
Angle=90
m=4
#
for x in range(1,Angle):
t.color("yellow")
for y in range(1,R1+1):
t.circle(x,y)
t.right(Angle)
t.penup()
t.goto(0,0)
t.pendown()
t.color("white")
t.write("原创作者:Ather ",font=("times",24,"bold"))
t.hideturtle()
t.done()