代码实现: import turtle import time import os def draw_square(org_x, org_y, x, y): turtle.setpos(org_x, org_y) # to left and bottom connor turtle.color('red', 'red') turtle.begin_fill() turtle.fd(x) turtle.lt(90) turtle.fd(y) turtle.lt(90) turtle.fd(x) #…