[issue44179] python3 终端 range函数显示错误

2021-05-19 Thread Christian Heimes
Christian Heimes added the comment: In Python 3 the range() builtin returns an iterator, not a list of items. You have to exhaust the iterator to get a list of iterator items. >>> list(range(-10, -100, -30)) [-10, -40, -70] -- nosy: +christian.heimes resolution: -> not a bug stage:

[issue44179] python3 终端 range函数显示错误

2021-05-19 Thread liaoliaoxiansheng
New submission from liaoliaoxiansheng <1041585...@qq.com>: [root@ct7-2 bin]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) [root@ct7-2 bin]# python2 Python 2.7.5 (default, Nov 16 2020, 22:23:17) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux2 Type "help", "copyright",