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