【单选题】numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],which output of the following choices is correct?
A: >>> numbers[0::3] [1, 3, 5, 7, 9]
B: >>> numbers[-2:] [9, 10]
C: >>> numbers[0: 2] [1, 2, 3]
D: >>> numbers[: -1] [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
发布时间:2024-05-08 01:22:38