# n =int(input("请输入模式A层数:")) # for i in range(1,n + 1): # for j in range(1,i +1): # print(f"{j}\t",end="") # print()
# n =int(input("请输入模式B的层数:")) # for i in range(1,n + 1): # for j in range(1,n - i +2): # print(f"{j}\t",end="") # print()
# n =int(input("请输入模式C层数:")) # for i in range(1,n + 1): # for _ in range(0,n - i): # print(f"\t",end="") # for j in range(i,0,-1): # print(f"{j}\t",end="") # print()
n =int(input("请输入模式D层数:")) for i in range(1,n + 1): for _ in range(1,i): print(f"\t",end="") for j in range(1,n - i +2): print(f"{j}\t",end="") print()