<legend id='2BSU1'><style id='2BSU1'><dir id='2BSU1'><q id='2BSU1'></q></dir></style></legend>
    <tfoot id='2BSU1'></tfoot>

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

    <small id='2BSU1'></small><noframes id='2BSU1'>

        <bdo id='2BSU1'></bdo><ul id='2BSU1'></ul>
      1. Python 3 中未定义名称“xrange"

        时间:2023-11-08
        <i id='cOWW4'><tr id='cOWW4'><dt id='cOWW4'><q id='cOWW4'><span id='cOWW4'><b id='cOWW4'><form id='cOWW4'><ins id='cOWW4'></ins><ul id='cOWW4'></ul><sub id='cOWW4'></sub></form><legend id='cOWW4'></legend><bdo id='cOWW4'><pre id='cOWW4'><center id='cOWW4'></center></pre></bdo></b><th id='cOWW4'></th></span></q></dt></tr></i><div id='cOWW4'><tfoot id='cOWW4'></tfoot><dl id='cOWW4'><fieldset id='cOWW4'></fieldset></dl></div>

                  <tbody id='cOWW4'></tbody>
              1. <small id='cOWW4'></small><noframes id='cOWW4'>

              2. <tfoot id='cOWW4'></tfoot>

                <legend id='cOWW4'><style id='cOWW4'><dir id='cOWW4'><q id='cOWW4'></q></dir></style></legend>
                  <bdo id='cOWW4'></bdo><ul id='cOWW4'></ul>
                  本文介绍了Python 3 中未定义名称“xrange"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我尝试执行以下代码,但无法执行错误:未定义名称xrange"

                  I try to execute following code but can't with mistake: name 'xrange' is not defined

                  pages = (
                      requests.get(
                          build_group_request({
                              "offset": WINDOW_SIZE * i,
                              "count": WINDOW_SIZE,
                              "fields": "sex,interests,bdate"
                          })
                      ).json()['response']['items']
                      for i in xrange(int(float(COUNT) / 100 + 1))
                  )
                  

                  推荐答案

                  你可能使用的是 Python3,其中 xrange 已变成 range.

                  You're probably using Python3, where xrange has become range.

                  这篇关于Python 3 中未定义名称“xrange"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:irange() 与 range() 或 xrange() 有何不同? 下一篇:如何进行逆“范围",即根据一组数字创建一个紧凑的范围?

                  相关文章

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

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

                    1. <tfoot id='xD3Qc'></tfoot>

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