题解 | #正斜线形图案#
正斜线形图案
http://www.nowcoder.com/practice/61ef68d129534dfbb04b232e1244e447
while 1: try: a = int(input()) for i in range(1,a+1): print(' '*(a-i)+'*') except: break
正斜线形图案
http://www.nowcoder.com/practice/61ef68d129534dfbb04b232e1244e447
while 1: try: a = int(input()) for i in range(1,a+1): print(' '*(a-i)+'*') except: break
相关推荐