and use some color to fill 4 corners of the new img. """# 获取旋转后4角的填充色iffilled_color == -1: filled_color = mode([img[0,0], img[0, -1], img[-1,0], img[-1, -1]]).mode[0]ifnp.array(filled_color).shape[0] ==2:ifisinstance(filled_color,int): filled_color ...