while True: a = int(input()) if a != 0: for i in range(1, a + 1): print("_" * (a - i) + "+" * i) continue else: break 測試時沒有continue會失敗 眾望知
while True: a = int(input()) if a != 0: for i in range(1, a + 1): print("_" * (a - i) + "+" * i) continue else: break
測試時沒有continue會失敗 眾望知