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