L=[1,2,3,4]print(L[10:])是什么?
>>> print(l[10:]) [] >>> print(l[1:]) [2, 3, 4] >>> print(l[2:]) [3, 4] >>> print(l[5:]) [] >>> print(l[0:]) [1, 2, 3, 4]
[],因为该索引无值