[問題] 請問怎麼引發python EOFerror (VSCODE)消失
大家好~程式碼如下:
while True:
try:
line=input()
#print(line)
except EOFError:
break
python3.6+
想使用input()一次輸入多行,來引發EOFError
但都失敗
不知道有沒有大大知道怎麼引發?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.166.61.219
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1529857676.A.EE9.html
→
06/25 00:52, , 1F
06/25 00:52, 1F
→
06/25 00:53, , 2F
06/25 00:53, 2F
→
06/25 00:54, , 3F
06/25 00:54, 3F
→
06/25 00:55, , 4F
06/25 00:55, 4F