1.完成输出
for i in range(1,6):
n =int(i*(i-1)/2+1)
for j in range(i):
print(n,end=" ")
n += 1
print()
2.完成输出
for i in range(1,5):
n = i
for j in range(4):
print(n,end=" ")
n += 4
print()
3.完成输出
for i in range(1,5):
if i%2==1:
n = 4*i-3
for j in range(4):
print(n,end=" ")
n += 1
print()
else:
n = i*4
for j in range(4):
print(n,end=" ")
n -= 1
print()