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", "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@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@python
components: Documentation
messages: 393952
nosy: docs@python, happy789450
priority: normal
severity: normal
status: open
title: python3 终端 range函数显示错误
type: behavior
versions: Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44179>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to