就看了一圈,别的题解主要以实现功能为主。那我就写一份稍微规范一些的代码吧0.0 class TwoDArr: def __init__(self, m, n): if m > 9 or n > 9: return print(-1) self.arr = [[0]*n for _ in range(m)] return print(0) def ExchangeElm(self, x1, y1, x2, y2): if x1 < 0 or x1 >= len(sel...