金字塔_python3
金字塔图案
http://www.nowcoder.com/questionTerminal/d84e8339f9444bb6b29bd3f227c8e538
while True: try: n = int(input()) for i in range(n): print(' '*(n-1-i) + '* '*(i+1)) except EOFError: break
金字塔图案
http://www.nowcoder.com/questionTerminal/d84e8339f9444bb6b29bd3f227c8e538
while True: try: n = int(input()) for i in range(n): print(' '*(n-1-i) + '* '*(i+1)) except EOFError: break
相关推荐