📅  最后修改于: 2022-03-11 14:46:39.832000             🧑  作者: Mango
#range(start, stop, step)
list1 = (list(range(4)))
print(list1)
list2 = (list(range(4, 8)))
print(list2)
list3 = (list(range(4, 10, 2)))
print(list3)
list4 = (list(range(0, -5)))
print(list4)
#outputs
#[0, 1, 2, 3]
#[4, 5, 6, 7]
#[4, 6, 8]
#[]