题解 | #数字三角形#
数字三角形
http://www.nowcoder.com/practice/804a22929b844e6b9379a5e90b5e2197
#双层循环
def print_pic(n):
for i in range(1,n+1):
for j in range(1,i+1):
print("{} ".format(j),end="")
print()
while True:
try:
num=input()
print_pic(int(num))
except:
break