题解 | #带空格直角三角形图案#
带空格直角三角形图案
https://www.nowcoder.com/practice/192d1039c3d44155bb868073f5482670
while True: try: n=int(input()) for i in range(1,n+1): print(" "*(n-i)+i*"* ") except: break
带空格直角三角形图案
https://www.nowcoder.com/practice/192d1039c3d44155bb868073f5482670
while True: try: n=int(input()) for i in range(1,n+1): print(" "*(n-i)+i*"* ") except: break
相关推荐