Created
April 4, 2018 13:32
-
-
Save jojonki/b73bbadfed902e87e7ed01857a69b22a to your computer and use it in GitHub Desktop.
Read lines until the EOF in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
refs = [] | |
while True: | |
try: | |
ref = input() | |
refs.append(ref) | |
except EOFError: | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment