riella98   1년 전

말 그대로 입니다.

length가 0인 경우로 처리해주는건 통과가 되는데 EOFError로는 처리가 안됩니다.

cr00   1년 전

https://docs.python.org/3/libr...

...If the stream is already at EOF, an empty string is returned.

https://docs.python.org/3/libr...

...When EOF is read, EOFError is raised.

EOFError는 input에서만 발생하고, readline에선 발생하지 않습니다

댓글을 작성하려면 로그인해야 합니다.