📜  范围(n,n)python代码示例

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

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