题解 | #带空格直角三角形图案#
带空格直角三角形图案
http://www.nowcoder.com/practice/192d1039c3d44155bb868073f5482670
while True:
try:
num = int(input())
for i in range(1, num + 1):
print(" " * (num-i), "* " * i, sep="") # num - i两个空格代表一个“* ”
except:
break