单选题

执行下面Python代码后,输出的结果是?(    )

my_tuple = (1, 2, 3, 3, 2, 1)

print(my_tuple.index(2))

A

出错,因为index方法需要两个参数

B

4

C

2

D

1

赣ICP备20007335号-2