画千套正方形

0

from turtle import Turtle,Screen
tom = Turtle()
def draw_square(length,level):
    for x in range(4):
        if level>0:
            draw_square(length//4,level-1)
        tom.fd(length)
        tom.right(90)
tom.speed(0)
draw_square(200,2)





0

发表评论