相关疑难解决方法(0)

NameError:全局名称'xrange'未在Python 3中定义

我在运行python程序时遇到错误:

Traceback (most recent call last):
  File "C:\Program Files (x86)\Wing IDE 101 4.1\src\debug\tserver\_sandbox.py", line 110, in <module>
  File "C:\Program Files (x86)\Wing IDE 101 4.1\src\debug\tserver\_sandbox.py", line 27, in __init__
  File "C:\Program Files (x86)\Wing IDE 101 4.1\src\debug\tserver\class\inventory.py", line 17, in __init__
builtins.NameError: global name 'xrange' is not defined
Run Code Online (Sandbox Code Playgroud)

游戏来自这里.

是什么导致这个错误?

python range xrange python-3.x runtimeexception

253
推荐指数
5
解决办法
31万
查看次数

标签 统计

python ×1

python-3.x ×1

range ×1

runtimeexception ×1

xrange ×1