Python雪花
import turtle
def show(n,size):
if n==1:
turtle.fd(size)
else:
for angle in [0,60,-120,60]:
turtle.left(angle)
show(n-1,size/3)
turtle.setup(800,800)
turtle.penup()
turtle.goto(-200,100)
turtle.pendown()
turt
原创
2022-01-23 03:55:23 ·
497 阅读 ·
0 评论