본문 바로가기

Algorithm/알고리즘

[Python] 입력이 끝날 때까지

그대로 출력

while True:
    try:
        print(input())
    except EOFError:
        break