<tfoot id='968eB'></tfoot>

        <small id='968eB'></small><noframes id='968eB'>

          <bdo id='968eB'></bdo><ul id='968eB'></ul>
      1. <legend id='968eB'><style id='968eB'><dir id='968eB'><q id='968eB'></q></dir></style></legend>

        <i id='968eB'><tr id='968eB'><dt id='968eB'><q id='968eB'><span id='968eB'><b id='968eB'><form id='968eB'><ins id='968eB'></ins><ul id='968eB'></ul><sub id='968eB'></sub></form><legend id='968eB'></legend><bdo id='968eB'><pre id='968eB'><center id='968eB'></center></pre></bdo></b><th id='968eB'></th></span></q></dt></tr></i><div id='968eB'><tfoot id='968eB'></tfoot><dl id='968eB'><fieldset id='968eB'></fieldset></dl></div>
      2. python字符串之前的b前缀是什么意思?

        What does a b prefix before a python string mean?(python字符串之前的b前缀是什么意思?)
      3. <i id='dkM26'><tr id='dkM26'><dt id='dkM26'><q id='dkM26'><span id='dkM26'><b id='dkM26'><form id='dkM26'><ins id='dkM26'></ins><ul id='dkM26'></ul><sub id='dkM26'></sub></form><legend id='dkM26'></legend><bdo id='dkM26'><pre id='dkM26'><center id='dkM26'></center></pre></bdo></b><th id='dkM26'></th></span></q></dt></tr></i><div id='dkM26'><tfoot id='dkM26'></tfoot><dl id='dkM26'><fieldset id='dkM26'></fieldset></dl></div>

        <legend id='dkM26'><style id='dkM26'><dir id='dkM26'><q id='dkM26'></q></dir></style></legend>

            <bdo id='dkM26'></bdo><ul id='dkM26'></ul>
          • <small id='dkM26'></small><noframes id='dkM26'>

            <tfoot id='dkM26'></tfoot>

                  <tbody id='dkM26'></tbody>
                  本文介绍了python字符串之前的b前缀是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  In a python source code I stumbled upon I've seen a small b before a string like in:

                  b"abcdef"
                  

                  I know about the u prefix signifying a unicode string, and the r prefix for a raw string literal.

                  What does the b stand for and in which kind of source code is it useful as it seems to be exactly like a plain string without any prefix?

                  解决方案

                  This is Python3 bytes literal. This prefix is absent in Python 2.5 and older (it is equivalent to a plain string of 2.x, while plain string of 3.x is equivalent to a literal with u prefix in 2.x). In Python 2.6+ it is equivalent to a plain string, for compatibility with 3.x.

                  这篇关于python字符串之前的b前缀是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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;?(为什么我的函数输出打印出“无?)

                    <tbody id='Z0hMi'></tbody>

                      <bdo id='Z0hMi'></bdo><ul id='Z0hMi'></ul>
                        1. <small id='Z0hMi'></small><noframes id='Z0hMi'>

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