squares = [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] print(squares[1:-1])
结果:
>>> [1, 4, 9, 16, 25, 36, 49, 64] >>>
0