📜  range python start at 1 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:22.735000             🧑  作者: Mango

代码示例2
>>> def range1(start, end):
...     return range(start, end+1)
...
>>> range1(1, 10)
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]