topic description
problems that do not correspond to forward and reverse slice indexes
sources of topics and their own ideas
I made my own attempt on the problem of slicing when I was learning the code today, and found a little problem
.related codes
/ / Please paste the code text below (do not replace the code with pictures)
L =
print (L [- 5])
print (L [: 5])
print (L [- 5print (L 0mur1])
print (L
what result do you expect? What is the error message actually seen?
I think the result should be
0
[0 br > 0
[4 br > 0
]
[4
]
0
[0,1,2,3,4]
[]
[4,3,2,1]
[4,3,2,1,0]
Why is it that the index in positive order is 04th
, but the index in reverse order is not fully displayed until it is fully displayed?
but using L [- 6] alone shows that it is beyond list