import turtle t = turtle.Turtle() len = 40 for i in range(5): for j in range(4): turtle.fd(len) turtle.lt(90) len+=40
turtle模块还是很好学的,可以做出你想画出的任何图形