在python3中 print(range(10))range(0,10) 得出的结果是 range(0,10) ,而不是[0,1,2,3,4,5,6,7,8,9] ,为什么呢?而且原来Python2版本中的xrange也已经取消.官网原话:In many ways the object returned by range() behaves as if it is a list, but in fact it isn't. It is an object which returns the s…