Python2里面默认有一个包叫做turtle,别名:乌龟,对于Python初学者很有吸引力,适合学习。这个包,主要是画图用的,这里用它画个图,并提供源码。 源码 import turtle def draw_square(turtle): for i in range(4): turtle.forward(100) turtle.right(90) def draw_flower(turtle): for i in range(36): draw_square(turtle) turtle.right(10) d…