>>> range(1,10)
[1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> range(1,10,2)
[1, 3, 5, 7, 9]
>>> range(10,1,-1)
[10, 9, 8, 7, 6, 5, 4, 3, 2]
>>> range(1,10,-1)
[]
>>> range(10,1,-3)
[10, 7, 4]
>>>
range()
最新推荐文章于 2023-05-24 08:05:45 发布
>>> range(1,10)
[1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> range(1,10,2)
[1, 3, 5, 7, 9]
>>> range(10,1,-1)
[10, 9, 8, 7, 6, 5, 4, 3, 2]
>>> range(1,10,-1)
[]
>>> range(10,1,-3)
[10, 7, 4]
>>>