Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例
try: x= "" x = input("input x: ") print (x) except EOFError as e: print (x) print ("end")
このコードを Python 3 で実行すると、次の出力が生成されます。
結果
2 行の出力は、EOFErrorハンドラーからのものです。input() 関数がプロンプトをデータとして読み取っているようです。助けてください。
EOFError