<bdo id='x4ke6'></bdo><ul id='x4ke6'></ul>

    <legend id='x4ke6'><style id='x4ke6'><dir id='x4ke6'><q id='x4ke6'></q></dir></style></legend>
  • <i id='x4ke6'><tr id='x4ke6'><dt id='x4ke6'><q id='x4ke6'><span id='x4ke6'><b id='x4ke6'><form id='x4ke6'><ins id='x4ke6'></ins><ul id='x4ke6'></ul><sub id='x4ke6'></sub></form><legend id='x4ke6'></legend><bdo id='x4ke6'><pre id='x4ke6'><center id='x4ke6'></center></pre></bdo></b><th id='x4ke6'></th></span></q></dt></tr></i><div id='x4ke6'><tfoot id='x4ke6'></tfoot><dl id='x4ke6'><fieldset id='x4ke6'></fieldset></dl></div>
    <tfoot id='x4ke6'></tfoot>

      <small id='x4ke6'></small><noframes id='x4ke6'>

      1. Python:EOFError:读取一行时出现EOF

        Python: EOFError: EOF when reading a line(Python:EOFError:读取一行时出现EOF)
        • <bdo id='H6lD7'></bdo><ul id='H6lD7'></ul>
            1. <legend id='H6lD7'><style id='H6lD7'><dir id='H6lD7'><q id='H6lD7'></q></dir></style></legend>
                  <tbody id='H6lD7'></tbody>

                <small id='H6lD7'></small><noframes id='H6lD7'>

                  <i id='H6lD7'><tr id='H6lD7'><dt id='H6lD7'><q id='H6lD7'><span id='H6lD7'><b id='H6lD7'><form id='H6lD7'><ins id='H6lD7'></ins><ul id='H6lD7'></ul><sub id='H6lD7'></sub></form><legend id='H6lD7'></legend><bdo id='H6lD7'><pre id='H6lD7'><center id='H6lD7'></center></pre></bdo></b><th id='H6lD7'></th></span></q></dt></tr></i><div id='H6lD7'><tfoot id='H6lD7'></tfoot><dl id='H6lD7'><fieldset id='H6lD7'></fieldset></dl></div>

                  <tfoot id='H6lD7'></tfoot>

                • 本文介绍了Python:EOFError:读取一行时出现EOF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  这可能会重复,但现有的答案都没有解决我的问题.

                  This may be repeated, but none of the existing answers solved my problem.

                  所以,我使用的是 Python 2.7,每次尝试时都会收到此错误(标题):

                  So, I'm using Python 2.7, and I get this error (title) whenever I try this:

                  number = int(raw_input('Number : '))
                  

                  我在 Sublime Text 2、compileronline.com 和 codecademy 中尝试过这个;它在此站点的前 2 个中失败.它适用于 codecademy 和终端编译器,但我不明白它失败的确切原因.

                  I tried this in Sublime Text 2, compileronline.com and in codecademy; it fails in the first 2 of this sites. It works on codecademy and in the terminal compiler, but I can't understand exactly why it is failing.

                  推荐答案

                  这里的问题是Sublime text 2的控制台不支持输入.

                  要解决此问题,您可以安装一个名为 SublimeREPL 的软件包.SublimeREPL 提供了一个接受输入的 Python 解释器.

                  To fix this issue, you can install a package called SublimeREPL. SublimeREPL provides a Python interpreter that takes in input.

                  而对于compileronline.com,您需要在网站右下方的STDIN Input"字段中提供输入.

                  And as for compileronline.com, you need to provide input in the "STDIN Input" field on the lower right of the website.

                  这篇关于Python:EOFError:读取一行时出现EOF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  env: python: No such file or directory(env: python: 没有这样的文件或目录)
                  How to evaluate environment variables into a string in Python?(如何在 Python 中将环境变量评估为字符串?)
                  Python - temporarily modify the current process#39;s environment(Python - 临时修改当前进程的环境)
                  Change current process environment#39;s LD_LIBRARY_PATH(更改当前进程环境的 LD_LIBRARY_PATH)
                  Reading and writing environment variables in Python?(在 Python 中读写环境变量?)
                  When to use sys.path.append and when modifying %PYTHONPATH% is enough(何时使用 sys.path.append 以及何时修改 %PYTHONPATH% 就足够了)
                    <tfoot id='X9TaX'></tfoot>

                        <tbody id='X9TaX'></tbody>
                      <legend id='X9TaX'><style id='X9TaX'><dir id='X9TaX'><q id='X9TaX'></q></dir></style></legend>
                        • <bdo id='X9TaX'></bdo><ul id='X9TaX'></ul>
                          <i id='X9TaX'><tr id='X9TaX'><dt id='X9TaX'><q id='X9TaX'><span id='X9TaX'><b id='X9TaX'><form id='X9TaX'><ins id='X9TaX'></ins><ul id='X9TaX'></ul><sub id='X9TaX'></sub></form><legend id='X9TaX'></legend><bdo id='X9TaX'><pre id='X9TaX'><center id='X9TaX'></center></pre></bdo></b><th id='X9TaX'></th></span></q></dt></tr></i><div id='X9TaX'><tfoot id='X9TaX'></tfoot><dl id='X9TaX'><fieldset id='X9TaX'></fieldset></dl></div>

                          1. <small id='X9TaX'></small><noframes id='X9TaX'>