标签:pre += nbsp == inpu print 题目 app head
4
n=int(input()) list_s=[] for i in range(1,n+1): list_s.append(i) z=1 for i in range(n): if i == 0 : for j in range(1,n): print("%-3d"%j,end="") print(j+1) else: for j in range(n-i): li2 = list_s[z - 1] + list_s[z] if j==n-i-1: print(li2) else: print("%-3d"%li2,end="") list_s.append(li2) z += 1 z+=1
标签:pre += nbsp == inpu print 题目 app head
原文地址:https://www.cnblogs.com/SkystarX/p/12180848.html