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