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