For the sequence: numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], which of the following relevant operation and corresponding output is correct?
A、>>> numbers[0: 2]
[1, 2, 3];
B、>>> numbers[-2:]
[9, 10];
C、>>> numbers[: -1]
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
D、>>> numbers[0::3]
[1, 3, 5, 7, 9]
发布时间:2025-09-02 18:53:40