• <tfoot id='t3Eox'></tfoot>

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

          <bdo id='t3Eox'></bdo><ul id='t3Eox'></ul>
      2. <legend id='t3Eox'><style id='t3Eox'><dir id='t3Eox'><q id='t3Eox'></q></dir></style></legend>

        Python中的(1,)和(1)有什么区别

        What#39;s the difference between (1,) and (1) in Python(Python中的(1,)和(1)有什么区别)
            <bdo id='WNAAX'></bdo><ul id='WNAAX'></ul>

          • <tfoot id='WNAAX'></tfoot>
            • <small id='WNAAX'></small><noframes id='WNAAX'>

                  <tbody id='WNAAX'></tbody>
                <legend id='WNAAX'><style id='WNAAX'><dir id='WNAAX'><q id='WNAAX'></q></dir></style></legend>
                1. <i id='WNAAX'><tr id='WNAAX'><dt id='WNAAX'><q id='WNAAX'><span id='WNAAX'><b id='WNAAX'><form id='WNAAX'><ins id='WNAAX'></ins><ul id='WNAAX'></ul><sub id='WNAAX'></sub></form><legend id='WNAAX'></legend><bdo id='WNAAX'><pre id='WNAAX'><center id='WNAAX'></center></pre></bdo></b><th id='WNAAX'></th></span></q></dt></tr></i><div id='WNAAX'><tfoot id='WNAAX'></tfoot><dl id='WNAAX'><fieldset id='WNAAX'></fieldset></dl></div>
                  本文介绍了Python中的(1,)和(1)有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如标题所述,我发现(1)(1,)是不一样的.但是它们有什么区别呢?

                  As stated in the title, I found that (1) and (1,) are different. But what's the difference of them?

                  In[39]: (1) == (1,)
                  Out[39]: False
                  

                  推荐答案

                  逗号使它成为一个元组.(1) 与用分隔符包裹的 1 相同.

                  The comma makes it a tuple. (1) is just the same as 1 wrapped in delimiters.

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

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

                  相关文档推荐

                  Initialize Multiple Numpy Arrays (Multiple Assignment) - Like MATLAB deal()(初始化多个 Numpy 数组(多重赋值) - 像 MATLAB deal())
                  How to extend Python class init(如何扩展 Python 类初始化)
                  What#39;s the difference between dict() and {}?(dict() 和 {} 有什么区别?)
                  What is a wrapper_descriptor, and why is Foo.__init__() one in this case?(什么是 wrapper_descriptor,为什么 Foo.__init__() 在这种情况下是其中之一?)
                  Initialize list with same bool value(使用相同的布尔值初始化列表)
                  setattr with kwargs, pythonic or not?(setattr 与 kwargs,pythonic 与否?)

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

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

                          <tbody id='yMfhC'></tbody>
                          <bdo id='yMfhC'></bdo><ul id='yMfhC'></ul>
                          1. <tfoot id='yMfhC'></tfoot>