Py学习  »  Python

Python xrange名称错误?[副本]

benbro00002 • 5 年前 • 1668 次点击  

运行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

游戏来自 here

是什么导致了这个错误?

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/56185
 
1668 次点击  
文章 [ 6 ]  |  最新文章 5 年前