while True: try: n = int(input()) ju = [[0 for i in range(n)]for j in range(n)]#创建一个n*n的矩阵 ju[0][0] = 1 tmp = 2 for k in range(1,n): for l in range(k+1): ju[k-l][l]=tmp#蛇形添加 tmp += 1 for m in range(n): ...