NameError: name 'xrange' is not defined

253 阅读1分钟

在Python 3以上的版本中,range()与xrange()合并为range( ),我的python版本为python3.6;

将xrange( )函数全部换为range( );