NameError:name ‘xrange’ is not defined python
在Python 3中,range()与xrange()合并为range( )。个人python版本为python3.5。 函数
将xrange( )函数所有换为range( )。python3.5