[New-bugs-announce] [issue44179] python3 终端 range函数显示错误
liaoliaoxiansheng
report at bugs.python.org
Wed May 19 08:22:46 EDT 2021
New submission from liaoliaoxiansheng <1041585384 at qq.com>:
[root at ct7-2 bin]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
[root at 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", "credits" or "license" for more information.
>>> range(5, 10)
[5, 6, 7, 8, 9]
>>> range(0, 10, 3)
[0, 3, 6, 9]
>>> range(-10, -100, -30)
[-10, -40, -70]
>>>
[root at ct7-2 bin]# python3
Python 3.9.5 (default, May 19 2021, 19:38:48)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> range(5, 10)
range(5, 10)
>>> range(0, 10, 3)
range(0, 10, 3)
>>> range(-10, -100, -30)
range(-10, -100, -30)
----------
assignee: docs at python
components: Documentation
messages: 393952
nosy: docs at python, happy789450
priority: normal
severity: normal
status: open
title: python3 终端 range函数显示错误
type: behavior
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44179>
_______________________________________
More information about the New-bugs-announce
mailing list