Commit 9e413dcf authored by 只敲代码不玩耍,聪明baka也变傻ᗜˬᗜ's avatar 只敲代码不玩耍,聪明baka也变傻ᗜˬᗜ :man_dancing_tone1:
Browse files

feat: handle EOFError in input reading for improved robustness

Showing with 5 additions and 1 deletion
+5 -1
......@@ -32,7 +32,11 @@ def read_pc_list():
began = False
while True:
line = input()
try:
line = input()
except EOFError:
break
if line == '':
break
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment