题解 | #蛇形矩阵#
蛇形矩阵
http://www.nowcoder.com/practice/649b210ef44446e3b1cd1be6fa4cab5e
num = int(input()) def juzhen(num): start = 1 for i in range(num): start += i mid = start for j in range(i,num): print(mid,end=' ') mid = mid + j + 2 print('\n',end='') juzhen(num)