题解 | #翻转金字塔图案#
翻转金字塔图案
https://www.nowcoder.com/practice/c4775776e4464537bfb6a5ba37c596c6
while True: try: n=int(input()) for i in range(n,0,-1): print(" "*(n-i)+i*"* ") except: break
翻转金字塔图案
https://www.nowcoder.com/practice/c4775776e4464537bfb6a5ba37c596c6
while True: try: n=int(input()) for i in range(n,0,-1): print(" "*(n-i)+i*"* ") except: break
相关推荐