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

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

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

        Python 3 中的 `raw_input()` 和 `input()` 有什么区别?

        What#39;s the difference between `raw_input()` and `input()` in Python 3?(Python 3 中的 `raw_input()` 和 `input()` 有什么区别?)
        <tfoot id='5vwrR'></tfoot>
        <i id='5vwrR'><tr id='5vwrR'><dt id='5vwrR'><q id='5vwrR'><span id='5vwrR'><b id='5vwrR'><form id='5vwrR'><ins id='5vwrR'></ins><ul id='5vwrR'></ul><sub id='5vwrR'></sub></form><legend id='5vwrR'></legend><bdo id='5vwrR'><pre id='5vwrR'><center id='5vwrR'></center></pre></bdo></b><th id='5vwrR'></th></span></q></dt></tr></i><div id='5vwrR'><tfoot id='5vwrR'></tfoot><dl id='5vwrR'><fieldset id='5vwrR'></fieldset></dl></div>

        <legend id='5vwrR'><style id='5vwrR'><dir id='5vwrR'><q id='5vwrR'></q></dir></style></legend>

                  <bdo id='5vwrR'></bdo><ul id='5vwrR'></ul>
                    <tbody id='5vwrR'></tbody>

                  <small id='5vwrR'></small><noframes id='5vwrR'>

                  本文介绍了Python 3 中的 `raw_input()` 和 `input()` 有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  raw_input()input() 在 Python 3 中有什么区别?

                  What is the difference between raw_input() and input() in Python 3?

                  推荐答案

                  区别在于Python 3.x中不存在raw_input(),而input() 会.其实旧的raw_input()已经重命名为input(),旧的input()已经没有了,但是可以很容易模拟通过使用 eval(input()).(请记住,eval() 是邪恶的.如果可能,请尝试使用更安全的方法来解析您的输入.)

                  The difference is that raw_input() does not exist in Python 3.x, while input() does. Actually, the old raw_input() has been renamed to input(), and the old input() is gone, but can easily be simulated by using eval(input()). (Remember that eval() is evil. Try to use safer ways of parsing your input if possible.)

                  这篇关于Python 3 中的 `raw_input()` 和 `input()` 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Split a Pandas column of lists into multiple columns(将 Pandas 的列表列拆分为多列)
                  How does the @property decorator work in Python?(@property 装饰器在 Python 中是如何工作的?)
                  What is the difference between old style and new style classes in Python?(Python中的旧样式类和新样式类有什么区别?)
                  How to break out of multiple loops?(如何打破多个循环?)
                  How to put the legend out of the plot(如何将传说从情节中剔除)
                  Why is the output of my function printing out quot;Nonequot;?(为什么我的函数输出打印出“无?)

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

                        <bdo id='ajGxY'></bdo><ul id='ajGxY'></ul>
                        <legend id='ajGxY'><style id='ajGxY'><dir id='ajGxY'><q id='ajGxY'></q></dir></style></legend>