先按规律处理好,放进ans数组,再把右侧多余的空格干掉。 n = int(input()) def copy(ans,tmp,sx,sy): for i in range(sx,sx+len(tmp)): ans[i][sy:sy+len(tmp[0])] = tmp[i-sx][:] def solve(dep): if dep == 1: return [ [0,0,1,0,0], [0,1,0,1,0], [1,0,1,0,1], ] tmp =...